mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Merge pull request #45 from YunoHost-Apps/restore-ssowat
restore: update SSOWAT configuration
This commit is contained in:
commit
913ea796a0
1 changed files with 10 additions and 0 deletions
|
@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
|
is_public=$(ynh_app_setting_get $app is_public)
|
||||||
final_path="/var/www/$app"
|
final_path="/var/www/$app"
|
||||||
data_path="/home/yunohost.app/$app"
|
data_path="/home/yunohost.app/$app"
|
||||||
db_name="$app"
|
db_name="$app"
|
||||||
|
@ -70,6 +71,15 @@ chown -R www-data: $final_path
|
||||||
mkdir -p $data_path
|
mkdir -p $data_path
|
||||||
chown -R www-data: $data_path
|
chown -R www-data: $data_path
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE SSOWAT
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
if [ "$is_public" = "Yes" ];
|
||||||
|
then
|
||||||
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue