Skip to content

Commit

Permalink
Corrected /srv restore/Unstage permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
creas002 committed Jul 29, 2024
1 parent 7d91bd1 commit edd0f4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansible/roles/common/files/rn2_backup_restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ restore() {
# Ensure previously installed environment has correct ownership/permissions
sudo chown ${USER}:${USER} /srv/audio
sudo chown ${USER}:www-data /srv /srv/images /srv/images/thumb /srv/videos
sudo chmod 755 /srv /srv/audio /srv/images /srv/images/thumb /srv/videos
sudo chmod 755 /srv
sudo chmod 775 /srv/audio /srv/images /srv/images/thumb /srv/videos

else
loggit "FAIL" "Required space for restore is ${RequiredSpace} MB and Free space is only ${FreeSpace} MB, aborting..."
Expand All @@ -252,7 +253,8 @@ restore() {
# Ensure previously installed environment has correct ownership/permissions
sudo chown ${USER}:${USER} /srv/audio
sudo chown ${USER}:www-data /srv /srv/images /srv/images/thumb /srv/videos
sudo chmod 755 /srv /srv/audio /srv/images /srv/images/thumb /srv/videos
sudo chmod 755 /srv
sudo chmod 775 /srv/audio /srv/images /srv/images/thumb /srv/videos
else
loggit "FAIL" "/srv_staged does not exist, aborting..."
exit 1
Expand Down

0 comments on commit edd0f4e

Please sign in to comment.