This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Variables | |
RPM_FILE="tftp-server-5.2-38.el9.x86_64.rpm" | |
TFTP_HOMEDIR="/home/tftp-home" | |
if [ ! -f "$RPM_FILE" ]; then | |
echo "Error: $RPM_FILE not found. Please download the RPM first." | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class API | |
# Defines the base path for the API endpoint | |
API_PATH = 'api/v2' | |
def initialize(host:, username:, password:, api_https:, timeout: nil) | |
# Determine protocol based on the 'api_https' flag | |
scheme = api_https ? 'https' : 'http' |
OlderNewer