Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin9705 committed Mar 15, 2019
1 parent 72dcff6 commit 8b8b228
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions functions/deployblitz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ ansible-playbook /opt/pgclone/ymls/remove.yml
echo "tdrive" > /var/plexguide/deploy.version
echo "mu" > /var/plexguide/deployed.version
type=tdrive
encryptbit=""
ansible-playbook /opt/pgclone/ymls/mount.yml -e "drive=tdrive"

# deploy only if pgmove is using encryption
if [[ "$transport" == "be" ]]; then
echo "me" > /var/plexguide/deployed.version
type=tcrypt
encryptbit="C"
ansible-playbook /opt/pgclone/ymls/crypt.yml -e "drive=tcrypt"; fi

# builds the list
Expand All @@ -45,6 +47,7 @@ done </var/plexguide/.blitzlist
ansible-playbook /opt/pgclone/ymls/pgunion.yml -e "\
transport=$transport \
type=$type
encryptbit=$encryptbit
hdpath=$hdpath"

# output final display
Expand Down
6 changes: 2 additions & 4 deletions scripts/pgblitz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ chmod -R 755 "{{hdpath}}/move"
startscript () {
while read p; do

if [[ "{{type}}" == "tcrypt" ]]; then eddition="C"; else eddition=""; fi

rclone moveto "{{hdpath}}/downloads/" "{{hdpath}}/move/" \
--config /opt/appdata/plexguide/rclone.conf \
--log-file=/var/plexguide/logs/pgblitz.log \
Expand All @@ -41,9 +39,9 @@ while read p; do
echo "----------------------------" >> /var/plexguide/logs/pgblitz.log
echo "PG Blitz Log - Cycle $cyclecount" >> /var/plexguide/logs/pgblitz.log
echo "" >> /var/plexguide/logs/pgblitz.log
echo "Utilizing: $keytransfer" >> /var/plexguide/logs/pgblitz.log
echo "Utilizing: $p" >> /var/plexguide/logs/pgblitz.log

rclone moveto "{{hdpath}}/move" "${p}${eaddtion}:/" \
rclone moveto "{{hdpath}}/move" "${p}{{encryptbit}}:/" \
--config /opt/appdata/plexguide/rclone.conf \
--log-file=/var/plexguide/logs/pgblitz.log \
--log-level INFO --stats 5s --stats-file-name-length 0 \
Expand Down

0 comments on commit 8b8b228

Please sign in to comment.