1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/agendav_ynh.git synced 2024-09-03 20:36:12 +02:00
This commit is contained in:
ericgaspar 2022-05-01 09:39:57 +02:00
parent c46da1a5be
commit 7fca84b5c2
2 changed files with 7 additions and 5 deletions

View file

@ -129,7 +129,7 @@ ynh_app_setting_set --app=$app --key=encryptkey --value="$encryptkey"
# Copy and set AgenDAV configuration # Copy and set AgenDAV configuration
timezone=$(cat /etc/timezone) timezone=$(cat /etc/timezone)
caldav_url="https://${domain}${path%/}${caldav_baseurl}" caldav_url="https://${domain}${path_url%/}${caldav_baseurl}"
logdir=/var/log/$app logdir=/var/log/$app

View file

@ -64,14 +64,16 @@ ynh_restore_file --origin_path="$final_path"
# RESTORE USER RIGHTS # RESTORE USER RIGHTS
#================================================= #=================================================
chown -R root: $final_path chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
# Only agendav user should write here # Only AgenDav user should write here
chown -R $app ${final_path}/web/var/cache/{profiler,twig} chown -R $app ${final_path}/web/var/cache/{profiler,twig}
# The agendav user should read here, but does not need to write # The AgenDav user should read here, but does not need to write
# Other users should not be able to read as it stores passwords. # Other users should not be able to read as it stores passwords.
chown -R root:$app ${final_path}/web/config/ chown -R $app ${final_path}/web/config/
chmod -R 750 ${final_path}/web/config/ chmod -R 750 ${final_path}/web/config/
#================================================= #=================================================