Skip to content

Commit

Permalink
Update file.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Aug 23, 2019
1 parent 958fd14 commit 098fec4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions menu/interface/version/file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ echo "[Z] Exit"
echo ""
break=no
while [ "$break" == "no" ]; do
read -p '↘️ Type [PG Version] | PRESS ENTER: ' typed
read -p '↘️ Type [Version] | PRESS ENTER: ' typed
storage=$(grep $typed /var/plexguide/ver.temp)

if [[ "$typed" == "exit" || "$typed" == "Exit" || "$typed" == "EXIT" || "$typed" == "z" || "$typed" == "Z" ]]; then
Expand All @@ -37,7 +37,7 @@ while [ "$break" == "no" ]; do
exit
fi

if [ "$storage" != "" ]; then
if [ "$storage" == "master" ]; then
break=yes
echo $storage >/var/plexguide/pg.number
ansible-playbook /opt/plexguide/menu/interface/version/choice.yml
Expand All @@ -47,6 +47,19 @@ while [ "$break" == "no" ]; do
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅️ SYSTEM MESSAGE: Installed Verison - $storage - Standby!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF

elif [ "$storage" == "dev" ]; then
break=yes
echo $storage >/var/plexguide/pg.number
ansible-playbook /opt/plexguide/menu/interface/version/choice-dev.yml

tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅️ SYSTEM MESSAGE: Installed Verison - $storage - Standby!
✅️ THATS an dev Branche
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
sleep 4
else
Expand Down

0 comments on commit 098fec4

Please sign in to comment.