mirror of
https://github.com/YunoHost-Apps/agendav_ynh.git
synced 2024-09-03 20:36:12 +02:00
fix path
This commit is contained in:
parent
c46da1a5be
commit
7fca84b5c2
2 changed files with 7 additions and 5 deletions
|
@ -129,7 +129,7 @@ ynh_app_setting_set --app=$app --key=encryptkey --value="$encryptkey"
|
|||
# Copy and set AgenDAV configuration
|
||||
timezone=$(cat /etc/timezone)
|
||||
|
||||
caldav_url="https://${domain}${path%/}${caldav_baseurl}"
|
||||
caldav_url="https://${domain}${path_url%/}${caldav_baseurl}"
|
||||
|
||||
logdir=/var/log/$app
|
||||
|
||||
|
|
|
@ -64,14 +64,16 @@ ynh_restore_file --origin_path="$final_path"
|
|||
# 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}
|
||||
|
||||
# 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.
|
||||
chown -R root:$app ${final_path}/web/config/
|
||||
chown -R $app ${final_path}/web/config/
|
||||
chmod -R 750 ${final_path}/web/config/
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue