1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shaarli_ynh.git synced 2024-09-03 20:26:10 +02:00

Fix permissions settings in install script

This commit is contained in:
Romain Garbage 2017-02-27 17:52:17 +02:00
parent 3febaaa94f
commit 2a6f053cfb

View file

@ -81,9 +81,18 @@ sudo cp ../conf/lastupdatecheck.txt $final_path/data
sudo cp ../conf/log.txt $final_path/data
sudo cp ../conf/updates.txt $final_path/data
# set proper permissions
sudo find $final_path -type f | xargs sudo chmod 644
sudo find $final_path -type d | xargs sudo chmod 755
#sudo chown -R root: $final_path
sudo chown -R root: $final_path
#set proper ownership of the files in /data
sudo chown www-data:www-data $final_path/data/config.json.php
sudo chown www-data:www-data $final_path/data/datastore.php
sudo chown www-data:www-data $final_path/data/ipbans.php
sudo chown www-data:www-data $final_path/data/lastupdatecheck.txt
sudo chown www-data:www-data $final_path/data/log.txt
sudo chown www-data:www-data $final_path/data/updates.txt
# Modify Nginx configuration file and copy it to Nginx conf directory
sudo sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf