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)

Should fix #49
This commit is contained in:
tituspijean 2020-04-17 14:44:38 +02:00 committed by GitHub
parent 5449171f6a
commit 1d1e3d85b6
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