mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
Fix upgrade issue (#63)
This commit is contained in:
parent
17e0ae3822
commit
c3ded6d56e
1 changed files with 1 additions and 4 deletions
|
@ -192,10 +192,7 @@ chmod 755 -R $final_path/_data
|
|||
ynh_script_progression --message="Upgrading Piwigo with cURL..." --weight=6
|
||||
|
||||
# Set the app as temporarily public for cURL call
|
||||
ynh_permission_has_user --permission="main" --user="visitors"
|
||||
contains_visitors=$?
|
||||
|
||||
if [ $contains_visitors -eq 1 ]
|
||||
if ! ynh_permission_has_user --permission="main" --user="visitors"
|
||||
then
|
||||
ynh_permission_update --permission="main" --add="visitors"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue