1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/question2answer_ynh.git synced 2024-09-03 20:16:07 +02:00

Only allow $app and www-data to read $final_path folder

This commit is contained in:
Nils VAN ZUIJLEN 2021-04-08 15:04:33 +02:00
parent 8a9776df3f
commit db719f1d0d
3 changed files with 10 additions and 1 deletions

View file

@ -247,8 +247,11 @@ ynh_store_file_checksum --file="$final_path/.htaccess"
# Set permissions to app files
chown -R root: $final_path
chmod o-rwx $final_path
chown $app:www-data $final_path
# Remove database initialization file
#rm $final_path/qa-include/qa-install.php
rm $final_path/qa-include/qa-install.php
#=================================================
# SETUP SSOWAT

View file

@ -75,6 +75,9 @@ ynh_system_user_create --username=$app
# Restore permissions on app files
chown -R root: $final_path
chmod o-rwx $final_path
chown $app:www-data $final_path
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================

View file

@ -153,6 +153,9 @@ fi
# Set permissions on app files
chown -R root: $final_path
chmod o-rwx $final_path
chown $app:www-data $final_path
#=================================================
# RELOAD NGINX
#=================================================