update fixes
This commit is contained in:
parent
b70ee35381
commit
334b4af5fe
2 changed files with 13 additions and 3 deletions
|
|
@ -1,5 +1,15 @@
|
|||
#!/bin/bash
|
||||
rsync -avP time:/srv/pandora/data/ /srv/pandora/data/
|
||||
|
||||
rsync -avP power:/srv/pandora/data/ /srv/pandora/data/
|
||||
if systemctl is-active --quiet render-infinity.service; then
|
||||
systemctl stop render-infinity.service
|
||||
restart_infinity=1
|
||||
else
|
||||
restart_infinity=0
|
||||
fi
|
||||
bash /srv/pandora/data/db/reload.sh
|
||||
rsync -avP time:/srv/pandora/data/ /srv/pandora/data/ --delete
|
||||
pandoractl manage generate_clips
|
||||
rsync -avP power:/srv/pandora/data/ /srv/pandora/data/ --delete
|
||||
if [ $restart_infinity == 1 ]; then
|
||||
systemctl start render-infinity.service
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ Description=Backup pandora database
|
|||
Type=oneshot
|
||||
User=pandora
|
||||
Group=pandora
|
||||
ExecStart=/srv/pandora/db/update.sh
|
||||
ExecStart=/srv/pandora/data/db/update.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue