Skip to content

Commit 744834b

Browse files
committed
update
1 parent 727cbb0 commit 744834b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

install/config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
INSTALL_DIR="/usr/src" # Path to the HA-Satellite wyoming and drivers directorys
33
INSTALL_PATH="/usr/src/HA-Satellite" # Path to the HA-Satellite repo directory
44
DEFAULT_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
67
WEBHOST="/var/www/html/" # Path to the homepage hosting directory
78
USER_GROUP="hasatellite" # User group for the user that will be running the scripts
89
USER="hasatellite" # User for running the scripts

install/main.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
7779
done

0 commit comments

Comments
 (0)