mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update change_url: properly reload php-fpm when changing trusted_domains
This commit is contained in:
parent
b90f5e934c
commit
3259e4abb5
1 changed files with 14 additions and 21 deletions
|
@ -34,10 +34,10 @@ then
|
|||
|
||||
# Change hostname for activity notifications
|
||||
exec_occ config:system:set overwrite.cli.url --value="https://${new_domain}${new_path}"
|
||||
fi
|
||||
|
||||
if [ $change_domain -eq 1 ]
|
||||
then
|
||||
# Reload php fpm, necessary for force nextcloud to re-read config.php, cf opcache.revalidate_freq
|
||||
ynh_systemd_action --service_name=php${phpversion}-fpm --action=reload
|
||||
|
||||
# Check if .well-known is available for this domain
|
||||
if is_url_handled --domain="$new_domain" --path="/.well-known/caldav" || is_url_handled --domain="$new_domain" --path="/.well-known/carddav"
|
||||
then
|
||||
|
@ -62,10 +62,3 @@ ynh_permission_url --permission="api" --url="re:$new_domain\/.well-known\/.*" --
|
|||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Change of URL completed for $app" --last
|
||||
|
||||
# Tmp debug for the stupid trusted domain issue x_x
|
||||
cat /var/www/nextcloud/config/config.php >&$YNH_STDINFO
|
||||
|
||||
systemctl restart php${phpversion}-fpm
|
||||
|
||||
sleep 5
|
||||
|
|
Loading…
Add table
Reference in a new issue