Skip to content

Commit

Permalink
Update serverid.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Dec 23, 2019
1 parent 74e08ad commit cca4a54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions menu/functions/serverid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ EOF

recreatefolder() {
start=$(cat /var/plexguide/server.id)
server_id=$(cat /var/plexguide/server.id)
serveridcreate=$(tree -d -L 1 /mnt/gdrive/plexguide/backup | awk '{print $2}' | tail -n +2 | head -n -2 | grep "$(cat /var/plexguide/server.id)")
if [[ $start != $serveridcreate ]]; then
rclone --config /opt/appdata/plexguide/rclone.conf mkdir gdrive:/plexguide/backup/${server_id};fi
rclone --config /opt/appdata/plexguide/rclone.conf mkdir gdrive:/plexguide/backup/$(cat /var/plexguide/server.id);fi
}


Expand Down

0 comments on commit cca4a54

Please sign in to comment.