From 0ba07b9845c66fb699aceae9d149446b1feb1588 Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Mon, 9 Dec 2019 00:59:54 +0100 Subject: [PATCH] Update install.sh --- menu/functions/install.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/menu/functions/install.sh b/menu/functions/install.sh index 3b6b2740..645d25f7 100644 --- a/menu/functions/install.sh +++ b/menu/functions/install.sh @@ -86,7 +86,8 @@ ospgversion=$(cat /etc/*-release | grep Debian | grep -E '9|10') pginstall() { updateprime - bash /opt/plexguide/menu/pggce/gcechecker.sh + # bash /opt/plexguide/menu/pggce/gcechecker.sh + gcecheck core pythonstart core aptupdate core alias @@ -132,6 +133,28 @@ core() { } ############################################################ INSTALLER FUNCTIONS +gcecheck() { +gcheck=$(dnsdomainname | tail -c 10) + if [ "$gcheck" == ".internal" ]; then + file3="$(tail -n 1 /var/plexguide/gce.done)" + if [[ "$file3" == "1" ]]; then + tee <<-EOF + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + 📂 Google Cloud Feeder Edition SET! + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + + NVME already mounted on /mnt with size $(df -h /mnt/ --total --local -x tmpfs | grep 'total' | awk '{print $2}') + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + EOF + + elif [[ "$file3" != "1" ]]; then + bash /opt/plexguide/menu/pggce/gcechecker.sh + else + echo "beware of this stupid lines" + fi + fi +} + alias() { ansible-playbook /opt/plexguide/menu/alias/alias.yml }