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

Set file permissions after creating the log (#53) (#54)

Should fix #49

Authored-by: tituspijean <tituspijean@outlook.com>
This commit is contained in:
lapineige 2020-04-28 20:38:02 +02:00 committed by GitHub
parent 250cdad375
commit c492793c68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,15 +129,6 @@ ynh_print_info "Configuring php-fpm..."
# Create a dedicated php-fpm config
ynh_add_fpm_config
# set proper permissions
ynh_print_info "Set permissions..."
find $final_path -type f | xargs chmod 644
find $final_path -type d | xargs chmod 755
# Set right permissions for curl install
ynh_print_info "Set rights..."
chown -R $app: $final_path
#=================================================
# SETUP LOGROTATE
#=================================================
@ -156,6 +147,17 @@ ynh_print_info "Configuring log rotation..."
touch "$final_path/data/log.txt"
ynh_use_logrotate "$final_path/data/log.txt"
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# set proper permissions
ynh_print_info "Set permissions..."
find $final_path -type f | xargs chmod 644
find $final_path -type d | xargs chmod 755
# Set right permissions for curl install
ynh_print_info "Set rights..."
chown -R $app: $final_path
#=================================================
# SETUP FAIL2BAN