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

permissions

This commit is contained in:
ericgaspar 2021-05-07 13:34:47 +02:00
parent 4d3840c1c5
commit bd2bbb961b
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 2 deletions

View file

@ -173,7 +173,8 @@ ynh_use_logrotate --logfile=$final_path/app/data/_data_/_default_/logs/fail2ban/
# Set permissions to app files
find $final_path/. -type d -exec chmod 755 {} \;
find $final_path/. -type f -exec chmod 644 {} \;
chown -R $app: $final_path
chmod -R o-rwx $final_path
chown -R $app:www-data $final_path
#=================================================
# SETUP FAIL2BAN

View file

@ -168,7 +168,8 @@ ynh_use_logrotate --logfile=$final_path/app/data/_data_/_default_/logs/fail2ban/
#=================================================
# Set permissions on app files
chown -R $app: $final_path
chmod -R o-rwx $final_path
chown -R $app:www-data $final_path
find $final_path/. -type d -exec chmod 755 {} \;
find $final_path/. -type f -exec chmod 644 {} \;