File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 22INSTALL_DIR=" /usr/src" # Path to the HA-Satellite wyoming and drivers directorys
33INSTALL_PATH=" /usr/src/HA-Satellite" # Path to the HA-Satellite repo directory
44DEFAULT_URL=" http://127.0.0.1/index.html" # Default URL for the homepage
5- CONFIG_FILE=" $INSTALL_PATH /scripts/config.sh" # Path to the config.sh file that holds the variables for the installation scripts
5+ INSTALL_CONFIG_FILE=" $INSTALL_PATH /install/config.sh" # Path to the config.sh file that holds the install variables for the installation scripts
6+ PYTHON_CONFIG_FILE=" $INSTALL_PATH /scripts/config.py" # Path to the config.py file that holds the Python variables for the installation scripts
67WEBHOST=" /var/www/html/" # Path to the homepage hosting directory
78USER_GROUP=" hasatellite" # User group for the user that will be running the scripts
89USER=" hasatellite" # User for running the scripts
Original file line number Diff line number Diff line change @@ -34,13 +34,14 @@ show_menu() {
3434 echo " 3. Install Wyoming Satellite"
3535 echo " 4. Install Spotify Connect"
3636 echo " 5. Setup Services"
37- echo " 6. Setup Python HTTP Server "
37+ echo " 6. Setup Hub Homepage "
3838 echo " 7. Clean up and reboot"
3939 echo " 8. Install all components"
4040 echo " 9. Exit"
41- echo " c. Edit Configuration File"
41+ echo " c. Edit Installer Configuration File"
4242 echo " d. Install Drivers (SEEED VOICE HAT)"
4343 echo " p. Run raspi-config to set desktop autologin and other settings"
44+ echo " s. Edit Python Scripts settings file"
4445 echo " Enter your choice (0-9 or c): "
4546}
4647
@@ -69,9 +70,10 @@ while true; do
6970 echo " All components have been installed." ;;
7071 9) echo " Exiting script."
7172 break ;;
72- c) sudo nano $CONFIG_FILE ;;
73+ c) sudo nano $INSTALL_CONFIG_FILE ;;
7374 d) bash seeed-voice-hat.sh;;
7475 p) sudo sudo raspi-config;;
76+ s) sudo nano $PYTHON_SCRIPTS_CONFIG_FILE ;;
7577 * ) echo " Invalid option. Please enter a number between 0 and 9 or 'c'." ;;
7678 esac
7779done
You can’t perform that action at this time.
0 commit comments