Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin0705 committed Mar 1, 2018
1 parent 50fe799 commit 3415208
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion menus/backup-restore/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ whiptail --title "Backup Menu" --menu "Make your choice" 19 25 12 \
"6 )" "Jackett" \
"7 )" "Lidarr" \
"8 )" "Medusa" \
"9)" "Myler" \
"9 )" "Myler" \
"10)" "Muximux" \
"11)" "NZBGET" \
"12)" "NZBHydra" \
Expand Down
40 changes: 29 additions & 11 deletions menus/version/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,39 +39,57 @@ case $CHOICE in
A)
version="Developer"

file="/var/plexguide/ask.yes"
if [ -e "$file" ]
then

touch /var/plexguide/ask.yes 1>/dev/null 2>&1
if dialog --stdout --title "Version User Confirmation" \
--backtitle "Visit https://PlexGuide.com - Automations Made Simple" \
--yesno "\nDo You Want to EXIT and Backout from the Install: Version - $version" 7 50; then
dialog --title "PG Update Status" --msgbox "\nExiting! User selected to NOT Install!" 0 0
clear
exit 0
--backtitle "Visit https://PlexGuide.com - Automations Made Simple" \
--yesno "\nDo You Want to EXIT and Backout from the Install: Version - $version" 7 50; then
dialog --title "PG Update Status" --msgbox "\nExiting! User selected to NOT Install!" 0 0
clear
exit 0
else
clear
fi

else
clear
fi

mv /opt/plexguide/scripts/docker-no/upgrade2.sh /tmp
cd /tmp
bash /tmp/upgrade2.sh
touch /var/plexguide/ask.yes 1>/dev/null 2>&1

dialog --title "PG Application Status" --msgbox "\nUpgrade Complete - Version $version!" 0 0
clear
exit 0 ;;
B)
touch /var/plexguide/ask.yes 1>/dev/null 2>&1
version="5.049" ;;
Z)
touch /var/plexguide/ask.yes 1>/dev/null 2>&1
clear
exit 0
;;
esac

file="/var/plexguide/ask.yes"
if [ -e "$file" ]
then

touch /var/plexguide/ask.yes 1>/dev/null 2>&1
if dialog --stdout --title "Version User Confirmation" \
--backtitle "Visit https://PlexGuide.com - Automations Made Simple" \
--yesno "\nDo You Want to EXIT and Backout from the Install: Version - $version" 7 50; then
dialog --title "PG Update Status" --msgbox "\nExiting! User selected to NOT Install!" 0 0
exit 0
--backtitle "Visit https://PlexGuide.com - Automations Made Simple" \
--yesno "\nDo You Want to EXIT and Backout from the Install: Version - $version" 7 50; then
dialog --title "PG Update Status" --msgbox "\nExiting! User selected to NOT Install!" 0 0
clear
exit 0
else
clear
fi


else
clear
fi
Expand Down
Binary file removed scripts/pictures/version39.png
Binary file not shown.

0 comments on commit 3415208

Please sign in to comment.