1
0
Fork 0
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:
Pierre de La Morinerie 2017-10-10 16:35:54 +05:30 committed by GitHub
commit 913ea796a0

View file

@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
is_public=$(ynh_app_setting_get $app is_public)
final_path="/var/www/$app"
data_path="/home/yunohost.app/$app"
db_name="$app"
@ -70,6 +71,15 @@ chown -R www-data: $final_path
mkdir -p $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
#=================================================