initial code changes

This commit is contained in:
2024-07-27 16:47:44 -05:00
parent 26b0a5fa19
commit d83353e61f
12 changed files with 196 additions and 194 deletions

8
menu.sh Normal file → Executable file
View File

@@ -9,7 +9,7 @@ yellow=$(echo -en "\e[93m")
main_menu() {
VERSION=1.0.11
VERSION=0.1
#reset
UDEV=''
TEMPUSB=''
@@ -21,11 +21,11 @@ main_menu() {
echo
echo
echo "${cyan}*************************${white}"
echo "${green}octoprint_deploy${white} $VERSION"
echo "${green}octodocker_deploy${white} $VERSION"
echo "${cyan}*************************${white}"
echo
PS3="${green}Select operation: ${white}"
if [ -f "/etc/octoprint_deploy" ]; then
if [ -f "/etc/octodocker_deploy" ]; then
options=("Add instance" "Delete instance" "Add USB Camera" "Add PiCam" "Delete Camera" "Utilities" "Backup Menu" "Update" "Quit")
else
options=("Prepare system" "Update" "Quit")
@@ -258,7 +258,7 @@ restore_menu() {
clear
PS3="${green}Select backup to restore: ${white}"
readarray -t options < <(ls /home/$user/instance_backup/$opt-backup-*.zip)
readarray -t options < <(ls /opt/octoprint/instance_backup/$opt-backup-*.zip)
options+=("Quit")
select zipfile in "${options[@]}"
do