1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

fix restore²

This commit is contained in:
Kay0u 2021-06-10 10:39:58 +02:00
parent 0238c84414
commit 05ab4b37e1
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -104,6 +104,11 @@ chmod 640 "$install_dir/config/config.php"
chmod 755 /home/yunohost.app chmod 755 /home/yunohost.app
chmod 750 $install_dir chmod 750 $install_dir
if [ $enable_notify_push -eq 1 ]
then
chmod 740 $final_path/apps/notify_push/bin/x86_64/notify_push
fi
# Iterate over users to extend their home folder permissions - for the external # Iterate over users to extend their home folder permissions - for the external
# storage plugin usage - and create relevant Nextcloud directories # storage plugin usage - and create relevant Nextcloud directories
for u in $(ynh_user_list); do for u in $(ynh_user_list); do
@ -151,6 +156,11 @@ ynh_systemd_action --service_name=nginx --action=reload
# CHECK IF NOTIFY_PUSH WORKS # CHECK IF NOTIFY_PUSH WORKS
#================================================= #=================================================
exec_occ() {
(cd "$install_dir" && ynh_exec_as "$app" \
php${phpversion} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@")
}
if [ $enable_notify_push -eq 1 ] if [ $enable_notify_push -eq 1 ]
then then
ynh_systemd_action --service_name="${app}-notify-push" --action=restart ynh_systemd_action --service_name="${app}-notify-push" --action=restart