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

Moar permission fixes

This commit is contained in:
Alexandre Aubin 2021-12-12 18:19:47 +01:00
parent 728ddf3a69
commit 4ace043d3a
3 changed files with 3 additions and 10 deletions

View file

@ -131,16 +131,7 @@ fi
# Installing the config file and replace the placeholders
ynh_add_config --template="../conf/config.json.php" --destination="$final_path/data/config.json.php"
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# set proper permissions
ynh_script_progression --message="Securing files and directories..."
chown -R $app: $final_path
chmod -R g+rX $final_path
chmod -R g+rwX $final_path/{cache/,data/,pagecache/,tmp/}
chmod 700 "$final_path/data/config.json.php"
#=================================================
# SETUP FAIL2BAN

View file

@ -65,6 +65,7 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chmod -R u+rwX $final_path/{cache/,data/,pagecache/,tmp/}
chown -R $app:www-data "$final_path"
chmod 700 "$final_path/data/config.json.php"
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -98,6 +98,7 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chmod -R u+rwX $final_path/{cache/,data/,pagecache/,tmp/}
chown -R $app:www-data "$final_path"
chmod 700 "$final_path/data/config.json.php"
#=================================================
# NGINX CONFIGURATION