|
|
@ -11,10 +11,12 @@ domain=$1
|
|
|
|
path=$2
|
|
|
|
path=$2
|
|
|
|
admin=$3
|
|
|
|
admin=$3
|
|
|
|
is_public=$4
|
|
|
|
is_public=$4
|
|
|
|
|
|
|
|
language=$5
|
|
|
|
|
|
|
|
|
|
|
|
# Save app settings
|
|
|
|
# Save app settings
|
|
|
|
sudo yunohost app setting $app admin -v "$admin"
|
|
|
|
sudo yunohost app setting $app admin -v "$admin"
|
|
|
|
sudo yunohost app setting $app is_public -v "$is_public"
|
|
|
|
sudo yunohost app setting $app is_public -v "$is_public"
|
|
|
|
|
|
|
|
sudo yunohost app setting $app language -v "$language"
|
|
|
|
|
|
|
|
|
|
|
|
# Check domain/path availability
|
|
|
|
# Check domain/path availability
|
|
|
|
sudo yunohost app checkurl $domain$path -a $app \
|
|
|
|
sudo yunohost app checkurl $domain$path -a $app \
|
|
|
@ -56,7 +58,7 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
#sudo chmod 644 $finalphpconf
|
|
|
|
#sudo chmod 644 $finalphpconf
|
|
|
|
|
|
|
|
|
|
|
|
# If app is public, add url to SSOWat conf as skipped_uris
|
|
|
|
# If app is public, add url to SSOWat conf as skipped_uris
|
|
|
|
if [ "$is_public" = "Yes" ];
|
|
|
|
if [[ $is_public -eq 1 ]];
|
|
|
|
then
|
|
|
|
then
|
|
|
|
# unprotected_uris allows SSO credentials to be passed anyway.
|
|
|
|
# unprotected_uris allows SSO credentials to be passed anyway.
|
|
|
|
sudo yunohost app setting $app unprotected_uris -v "/"
|
|
|
|
sudo yunohost app setting $app unprotected_uris -v "/"
|
|
|
|