Skip to content

Commit

Permalink
some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Sep 7, 2019
1 parent 673e1a9 commit 45be57e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
31 changes: 16 additions & 15 deletions menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ pginstall() {
core mountcheck
emergency
pgdeploy
localspace
}

core() {
Expand All @@ -129,10 +130,10 @@ ansible-playbook /opt/plexguide/menu/pg.yml --tags update &>/dev/null &
}

aptupdate() {
yes | apt-get update
yes | apt-get install software-properties-common
yes | apt-get install sysstat nmon
sed -i 's/false/true/g' /etc/default/sysstat
ansible-playbook /opt/plexguide/menu/pg.yml --tags update &>/dev/null &
apt-get install software-properties-common &>/dev/null &
apt-get install sysstat nmon &>/dev/null &
sed -i 's/false/true/g' /etc/default/sysstat
}

customcontainers() {
Expand Down Expand Up @@ -288,17 +289,18 @@ motd() {
ansible-playbook /opt/plexguide/menu/motd/motd.yml
}

# mountcheck() {
# bash /opt/plexguide/menu/pgcloner/solo/pgui.sh
# ansible-playbook /opt/pgui/pgui.yml
# ansible-playbook /opt/plexguide/menu/pgui/mcdeploy.yml
# }
mountcheck() {
# bash /opt/plexguide/menu/pgcloner/solo/pgui.sh
# ansible-playbook /opt/pgui/pgui.yml
ansible-playbook /opt/plexguide/menu/pgui/mcdeploy.yml
}

# localspace() {
localspace() {
# ansible-playbook /opt/pgui/pgui.yml
# ansible-playbook /opt/plexguide/menu/pgui/localspace.yml

# tee <<-EOF
ansible-playbook /opt/plexguide/menu/pgui/localspace.yml
}

# tee <<-EOF

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# ↘️ PG User Interface (PGUI) Installed / Updated
Expand All @@ -314,8 +316,7 @@ motd() {
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# EOF
# read -p 'Acknowledge Info | Press [ENTER] ' typed </dev/tty

# }
#

newinstall() {
rm -rf /var/plexguide/pg.exit 1>/dev/null 2>&1
Expand Down
10 changes: 8 additions & 2 deletions menu/functions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ EOF

downloadpg() {
rm -rf /opt/plexguide
git clone https://github.com/MrDoobPG/PGBlitz.com.git /opt/plexguide && cp /opt/plexguide/menu/interface/alias/templates/plexguide /bin/
cp /opt/plexguide/menu/interface/alias/templates/plexguide /bin/plexguide
git clone --single-branch https://github.com/MrDoobPG/PGBlitz.com.git /opt/plexguide 1>/dev/null 2>&1
ansible-playbook /opt/plexguide/menu/alias/alias.yml 1>/dev/null 2>&1

}

missingpull() {
Expand Down Expand Up @@ -57,6 +58,11 @@ EOF
fi
}

owned() {
chown -cR 1000:1000 /opt/plexguide 1>/dev/null 2>&1
chmod -R 775 /opt/plexguide 1>/dev/null 2>&1
}

exitcheck() {
bash /opt/plexguide/menu/version/file.sh
file="/var/plexguide/exited.upgrade"
Expand Down

0 comments on commit 45be57e

Please sign in to comment.