1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-02-18 19:48:59 +01:00
parent 39ccc3b755
commit 17e0ae3822
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -192,7 +192,13 @@ chmod 755 -R $final_path/_data
ynh_script_progression --message="Upgrading Piwigo with cURL..." --weight=6 ynh_script_progression --message="Upgrading Piwigo with cURL..." --weight=6
# Set the app as temporarily public for cURL call # Set the app as temporarily public for cURL call
ynh_permission_has_user --permission="main" --user="visitors"
contains_visitors=$?
if [ $contains_visitors -eq 1 ]
then
ynh_permission_update --permission="main" --add="visitors" ynh_permission_update --permission="main" --add="visitors"
fi
# Reload NGINX # Reload NGINX
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload