1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/privatebin_ynh.git synced 2024-09-03 20:15:56 +02:00

Fixes to restore script

This commit is contained in:
Julien Malik 2016-08-24 19:41:07 +02:00
parent b14a9997fc
commit 7d82f846e8
2 changed files with 4 additions and 3 deletions

View file

@ -31,7 +31,7 @@ sudo chown -R root: $final_path
# except for data and tmp subdir, where www-data must have write permissions # except for data and tmp subdir, where www-data must have write permissions
sudo mkdir -p $final_path/{data,tmp} sudo mkdir -p $final_path/{data,tmp}
sudo chown www-data:root $final_path/{data,tmp} sudo chown -R www-data:root $final_path/{data,tmp}
sudo chmod 700 $final_path/{data,tmp} sudo chmod 700 $final_path/{data,tmp}
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory

View file

@ -51,8 +51,9 @@ fi
sudo cp -a "./sources" $final_path sudo cp -a "./sources" $final_path
# Set permissions # Set permissions
sudo chown -R www-data:root $final_path/{conf,data,data/attic,data/cache,data/index,data/locks,data/media*,data/meta,data/pages,data/tmp,lib/plugins} sudo chown -R root:root $final_path
sudo chmod -R 700 $final_path/{conf,data,data/attic,data/cache,data/index,data/locks,data/media*,data/meta,data/pages,data/tmp,lib/plugins} sudo chown -R www-data:root $final_path/{data,tmp}
sudo chmod -R 700 $final_path/{data,tmp}
# Restore conf files # Restore conf files
sudo cp -a "./conf/nginx.conf" $conf sudo cp -a "./conf/nginx.conf" $conf