Comply with new package_linter rules

This commit is contained in:
Jimmy Monin 2016-12-30 17:34:11 +01:00
parent 58ffd500e6
commit 6d2413e1d4

View File

@ -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