diff --git a/scripts/install b/scripts/install index 721c919..acc4983 100644 --- a/scripts/install +++ b/scripts/install @@ -50,7 +50,7 @@ sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf # Set permissions and reload nginx (needed at this stage for the PHP piwigo installation process) sudo service nginx reload -sudo yunohost app setting "$app" unprotected_uris -v "/" +ynh_app_setting_set "$app" unprotected_uris "/" sudo yunohost app ssowatconf @@ -61,8 +61,8 @@ curl --resolve $domain:443:127.0.0.1 -kL -X POST https://$domain$path/index.php? #protect URIs if private if [ $is_public -eq 0 ]; then - sudo yunohost app setting "$app" -d unprotected_uris - sudo yunohost app setting "$app" protected_uris -v "/" + ynh_app_setting_delete "$app" unprotected_uris + ynh_app_setting_set "$app" protected_uris "/" fi # Add cron job