Skip to content

Commit

Permalink
pas server ip
Browse files Browse the repository at this point in the history
server ip cat from pas config
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Dec 27, 2019
1 parent c87912a commit 3ad2a9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions menu/pgscan/pgscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ doneenter(){
showupdomain() {
clear
PAS_CONFIG="/opt/plex_autoscan/config/config.json"

SERVER_IP=$(ip a | grep glo | awk '{print $2}' | head -1 | cut -f1 -d/)
SERVER_IP=$(cat ${PAS_CONFIG} | jq -r .SERVER_IP)
SERVER_PORT=$(cat ${PAS_CONFIG} | jq -r .SERVER_PORT)
SERVER_PASS=$(cat ${PAS_CONFIG} | jq -r .SERVER_PASS)

Expand Down
3 changes: 1 addition & 2 deletions menu/pgscan/scripts/endbanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
################################################################################
pasdeployed() {
PAS_CONFIG="/opt/plex_autoscan/config/config.json"

SERVER_IP=$(ip a | grep glo | awk '{print $2}' | head -1 | cut -f1 -d/)
SERVER_IP=$(cat ${PAS_CONFIG} | jq -r .SERVER_IP)
SERVER_PORT=$(cat ${PAS_CONFIG} | jq -r .SERVER_PORT)
SERVER_PASS=$(cat ${PAS_CONFIG} | jq -r .SERVER_PASS)
domain=$(cat /var/plexguide/server.domain)
Expand Down

0 comments on commit 3ad2a9d

Please sign in to comment.