Skip to content

Commit

Permalink
Merge pull request #365 from Admin9705/Edge
Browse files Browse the repository at this point in the history
Edge
  • Loading branch information
Admin9705 authored Jul 28, 2018
2 parents 1496e17 + 75264f6 commit 3e95081
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 6 deletions.
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ install:
- sh: cd /opt/plexguide
- sh: sudo bash /opt/plexguide/roles/baseline/scripts/gen.sh

###### EXECUTE SET VARIABLES
- sh: sudo bash /opt/plexguide/roles/appveyor/var.sh

###### ANSIBLE INSTALL
- sh: sudo bash /opt/plexguide/roles/baseline/scripts/ansible.sh
###### DOCKER INSTALL
Expand Down
6 changes: 3 additions & 3 deletions menus/version/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ TITLE="Select A PlexGuide Version"
MENU="Make a Selection:"

OPTIONS=(Z "----- Exit Menu -----"
01 "EDGE ~ 6.021"
02 "Release ~ 6.020"
01 "EDGE ~ 6.022"
02 "Release ~ 6.021"
03 "Release ~ 6.016"
04 "Release ~ 6.015"
05 "Release ~ 6.014"
Expand Down Expand Up @@ -72,7 +72,7 @@ echo 'INFO - Selected: Exit Upgrade Menu' > /var/plexguide/pg.log && bash /opt/p
;;
02)
touch /var/plexguide/ask.yes 1>/dev/null 2>&1
version="6.020" ;;
version="6.021" ;;
03)
touch /var/plexguide/ask.yes 1>/dev/null 2>&1
version="6.016" ;;
Expand Down
22 changes: 22 additions & 0 deletions roles/appveyor/var.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
#
# [PlexGuide Menu]
#
# GitHub: https://github.com/Admin9705/PlexGuide.com-The-Awesome-Plex-Server
# Author: Admin9705
# URL: https://plexguide.com
#
# PlexGuide Copyright (C) 2018 PlexGuide.com
# Licensed under GNU General Public License v3.0 GPL-3 (in short)
#
# You may copy, distribute and modify the software as long as you track
# changes/dates in source files. Any modifications to our software
# including (via compiler) GPL-licensed code must also be made available
# under the GPL along with build & install instructions.
#
#################################################################################
echo "plexguide.com" > /var/plexguide/server.domain
echo "1.1.1.1" > /var/plexguide/server.ip
echo "" > /var/plexguide/server.ports
echo "/mnt" > /var/plexguide/server.hd.path
echo "" > /var/plexguide/server.ht
5 changes: 3 additions & 2 deletions roles/baseline/scripts/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ rm -r /opt/plexguide/pg.yml 1>/dev/null 2>&1

echo "---" > /opt/plexguide/pg.yml
echo "- hosts: localhost" >> /opt/plexguide/pg.yml
cat /opt/plexguide/roles/global_vars.sh >> /opt/plexguide/pg.yml
echo "" >> /opt/plexguide/pg.yml
echo " roles:" >> /opt/plexguide/pg.yml

Expand All @@ -39,7 +40,7 @@ done </var/plexguide/yml.list
#echo "command_warnings = False" >> /etc/ansible/ansible.cfg
#echo "callback_whitelist = profile_tasks" >> /etc/ansible/ansible.cfg
#echo "inventory = inventories/local" >> /etc/ansible/ansible.cfg
### ENDING: DECLARED VARIABLES
### ENDING: DECLARED VARIABLES

### ENDING: FINAL LOG ##################################################
echo "INFO - $keyword1: Exiting $keyword2 Script" > /var/plexguide/pg.log && bash /opt/plexguide/roles/log/log.sh
echo "INFO - $keyword1: Exiting $keyword2 Script" > /var/plexguide/pg.log && bash /opt/plexguide/roles/log/log.sh
5 changes: 5 additions & 0 deletions roles/global_vars.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## GLOBAL_VARS.SH ####################################################(START)
###### BE CAREFUL - WRONG FORMATTING CAN BREAK PG ### - opt/plexguide/pg.yml
vars:
skipend: "blank"
## GLOBAL_VARS.SH #################################################### (END)
2 changes: 1 addition & 1 deletion roles/info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
#################################################################################
#### PG VARIBLES
echo "6.020" > /var/plexguide/pg.version
echo "6.021" > /var/plexguide/pg.version
echo "132" > /var/plexguide/pg.preinstall

#### Installer
Expand Down
1 change: 1 addition & 0 deletions roles/traefik/scripts/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ for ((i=1; i<$count+1; i++)); do
ansible-playbook /opt/plexguide/pg.yml --tags $app --skip-tags cron
done

read -n 1 -s -r -p "Press any key to continue"
echo 'INFO - Rebuilding Complete!' > /var/plexguide/pg.log && bash /opt/plexguide/roles/log/log.sh

0 comments on commit 3e95081

Please sign in to comment.