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

yet another fix for the warning is_public

This commit is contained in:
Kay0u 2022-01-04 11:55:56 +01:00
parent 91ba9a0cfd
commit f3dcee6250
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -173,15 +173,6 @@ chown -R $app:www-data "$final_path"
# Set the app as temporarily public for curl call
ynh_script_progression --message="Configuring SSOwat..."
if ! ynh_permission_has_user --permission=main --user="visitors"; then
is_public=0
# Making the app public for curl
ynh_permission_update --permission="main" --add="visitors"
else
is_public=1
fi
ynh_backup_if_checksum_is_different --file="$final_path/config/connect.php"
mv $final_path/config/connect.php $final_path/config/connect.php.ynh_bkp
@ -236,17 +227,6 @@ ynh_store_file_checksum --file="$final_path/config/connect.php"
#=================================================
# GENERIC FINALIZATION
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring permissions..."
# Make app private if necessary
if [ $is_public -eq 0 ]
then
ynh_permission_update --permission="main" --remove="visitors"
fi
#=================================================
# RELOAD NGINX
#=================================================