|
|
|
@ -252,9 +252,14 @@ echo "# Reach everyday wp-cron.php to trig the internal WordPress cron. |
|
|
|
# Set permissions to app files |
|
|
|
# Files have to be own by the user of wordpress. To allow upgrade from the app. |
|
|
|
chown -R $app: $final_path |
|
|
|
# Except the file config wp-config.php |
|
|
|
chown root:$app $final_path/wp-config.php |
|
|
|
chmod 640 $final_path/wp-config.php |
|
|
|
setfacl -d -R -m u:tiny_file_manager:rw $final_path |
|
|
|
setfacl -d -R -m g:tiny_file_manager.main:rw $final_path |
|
|
|
find $final_path -type d -exec setfacl -m u:tiny_file_manager:rwx {} \; |
|
|
|
find $final_path -type f -exec setfacl -m u:tiny_file_manager:rw {} \; |
|
|
|
find $final_path -type d -exec setfacl -m g:tiny_file_manager.main:rwx {} \; |
|
|
|
find $final_path -type f -exec setfacl -m g:tiny_file_manager.main:rw {} \; |
|
|
|
chmod -R g+w $final_path |
|
|
|
find $final_path -type d -exec chmod g+s {} \; |
|
|
|
|
|
|
|
#================================================= |
|
|
|
# SETUP FAIL2BAN |
|
|
|
|