Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored Dec 6, 2019
1 parent 2276138 commit 3557938
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,20 @@ pginstall() {
# Roles Ensure that PG Replicates and has once if missing; important for startup, cron and etc
if [[ $(cat /var/plexguide/install.roles) != "$rolenumber" ]]; then
rm -rf /opt/{coreapps,communityapps,pgshield}

pgcore
pgcommunity
pgshield
echo "$rolenumber" >${abc}/install.roles
fi

rcloneinstall
portainer
core motd &>/dev/null &
core hetzner &>/dev/null &
core motd 1>/dev/null 2>&1
core hetzner 1>/dev/null 2>&1
core gcloud
core cleaner &>/dev/null &
core cleaner 1>/dev/null 2>&1
core serverid
core prune
customcontainers &>/dev/null &
pgedition
core mountcheck
emergency
Expand All @@ -141,12 +140,12 @@ aptupdate() {
ansible-playbook /opt/plexguide/menu/pg.yml --tags update
}

customcontainers() {
mkdir -p /opt/{coreapps,communityapps/apps,pgshield,mycontainers}
}
#customcontainers() {
# mkdir -p /opt/{coreapps,communityapps/apps,pgshield,mycontainers}
#}

cleaner() {
ansible-playbook /opt/plexguide/menu/pg.yml --tags autodelete,clean,journal &>/dev/null &
ansible-playbook /opt/plexguide/menu/pg.yml --tags autodelete,clean,journal
}

dependency() {
Expand Down Expand Up @@ -233,7 +232,7 @@ pgedition() {
portainer() {
dstatus=$(docker ps --format '{{.Names}}' | grep "portainer")
if [ "$dstatus" != "portainer" ]; then
ansible-playbook /opt/coreapps/apps/portainer.yml &>/dev/null &
ansible-playbook /opt/coreapps/apps/portainer.yml
fi
}

Expand Down

0 comments on commit 3557938

Please sign in to comment.