mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
fix
This commit is contained in:
parent
ed9b0d9720
commit
dea03fc81c
4 changed files with 16 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
|
||||
#retrieve arguments
|
||||
domain=$1
|
||||
path=$2
|
||||
|
@ -70,15 +73,15 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|||
# If app is private, remove url to SSOWat conf from skipped_uris
|
||||
if [ "$is_public" = "No" ];
|
||||
then
|
||||
# Redirect to SSOwat login in
|
||||
sudo yunohost app setting $app unprotected_uris -d
|
||||
else
|
||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
fi
|
||||
|
||||
# Adding admin to the allowed users
|
||||
sudo yunohost app addaccess $app -u $admin
|
||||
|
||||
# Allow only allowed users to access admin panel
|
||||
sudo yunohost app setting bozon protected_uris -v "index.php?p=login"
|
||||
|
||||
# Restart services
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
|
||||
app=bozon
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
|
||||
# definie useful vars
|
||||
app=bozon
|
||||
parent_path=/var/www
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
|
||||
app=bozon
|
||||
parent_path=/var/www
|
||||
final_path=$parent_path/$app
|
||||
|
|
Loading…
Reference in a new issue