Skip to content

Commit

Permalink
functions serverid
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 28, 2019
1 parent 625dba9 commit 56b8641
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions menu/functions/serverid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ source /opt/plexguide/menu/functions/functions.sh
abc="/var/plexguide"

serverid() {
if [ "$start" != "$stored" ]; then

tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
↘️ Establishing Server ID 💬 Use One Word & Keep it Simple
↘️ Establishing Server ID 💬 Use One Word & Keep it Simple
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
read -p '🌏 TYPE Server ID | Press [ENTER]: ' typed </dev/tty
Expand All @@ -34,6 +36,10 @@ EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
echo "$typed" >${abc}/server.id
cat ${abc}/server.id >${abc}/server.id.stored
sleep 1
fi
}
}

####functions start
serverid
8 changes: 7 additions & 1 deletion menu/interface/serverid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ source /opt/plexguide/menu/functions/functions.sh
abc="/var/plexguide"

serverid() {
if [ "$start" != "$stored" ]; then

tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
↘️ Establishing Server ID 💬 Use One Word & Keep it Simple
↘️ Establishing Server ID 💬 Use One Word & Keep it Simple
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
read -p '🌏 TYPE Server ID | Press [ENTER]: ' typed </dev/tty
Expand All @@ -34,6 +36,10 @@ EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
echo "$typed" >${abc}/server.id
cat ${abc}/server.id >${abc}/server.id.stored
sleep 1
fi
}

####functions start
serverid

0 comments on commit 56b8641

Please sign in to comment.