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:
parent
8a9776df3f
commit
db719f1d0d
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue