diff --git a/scripts/install b/scripts/install index 81d2916..7d63c2b 100644 --- a/scripts/install +++ b/scripts/install @@ -13,14 +13,14 @@ default_lang=$6 # Check domain/path availability sudo yunohost app checkurl $domain$path -a $app if [[ ! $? -eq 0 ]]; then -exit 1 + exit 1 fi # Check user sudo yunohost user list --json | grep -q "\"username\": \"$admin\"" if [[ ! $? -eq 0 ]]; then -echo "Wrong user" -exit 1 + echo "Wrong user" + exit 1 fi # Save app settings @@ -61,7 +61,7 @@ sudo chmod 750 -R $final_path # If app is private, remove url to SSOWat conf from skipped_uris if [ "$is_public" = "No" ]; then -sudo yunohost app setting $app unprotected_uris -d + sudo yunohost app setting $app unprotected_uris -d fi #adding admin to the allowed users diff --git a/scripts/upgrade b/scripts/upgrade index ac204c1..b9eade8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,9 +25,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # If app is public, add url to SSOWat conf as skipped_uris if [ "$is_public" = "Yes" ]; then -sudo yunohost app setting $app unprotected_uris -v "/" + sudo yunohost app setting $app unprotected_uris -v "/" fi # Restart services sudo service nginx reload -sudo yunohost app ssowatconf \ No newline at end of file +sudo yunohost app ssowatconf