Untitled
unknown
plain_text
6 months ago
911 B
0
Indexable
Never
#!/bin/bash # Function to save the config values in dbconfig.ini save_config_values() { # Create the config folder if it doesn't exist mkdir -p config # Create the dbconfig.ini file cat << EOF > config/dbconfig.ini [Credentials] Username=$1 Password=$2 [Server] Hostname=$3 Port=$4 ServiceName=$5 EOF echo "Configuration saved successfully!" } # Check if parameters are provided if [ $# -eq 5 ]; then # Parameters are provided save_config_values "$1" "$2" "$3" "$4" "$5" else # Default values default_username="default_username" default_password="default_password" default_hostname="default_hostname" default_port="default_port" default_servicename="default_servicename" save_config_values "$default_username" "$default_password" "$default_hostname" "$default_port" "$default_servicename" fi # Call the Python script python orchestration.py