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

[enh] indentation

This commit is contained in:
Julien Malik 2014-11-17 14:04:17 +01:00 committed by Moul
parent 5007dcc9fb
commit 90a9ec6cbf
2 changed files with 6 additions and 6 deletions

View file

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

View file

@ -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
sudo yunohost app ssowatconf