1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git synced 2024-09-03 18:36:09 +02:00

Update _common.sh

This commit is contained in:
Éric Gaspar 2023-02-16 15:34:59 +01:00
parent 4003d263bc
commit 39d0808ab3

View file

@ -42,10 +42,10 @@ ep_font_size_version=0.4.44
ynh_maintenance_mode_ON () {
# Load value of $path and $domain from the config if their not set
if [ -z $path ]; then
#REMOVEME? path=$(ynh_app_setting_get $app path)
path=$(ynh_app_setting_get $app path)
fi
if [ -z $domain ]; then
#REMOVEME? domain=$(ynh_app_setting_get $app domain)
domain=$(ynh_app_setting_get $app domain)
fi
mkdir -p /var/www/html/
@ -98,10 +98,10 @@ include conf.d/yunohost_panel.conf.inc;
ynh_maintenance_mode_OFF () {
# Load value of $path and $domain from the config if their not set
if [ -z $path ]; then
#REMOVEME? path=$(ynh_app_setting_get $app path)
path=$(ynh_app_setting_get $app path)
fi
if [ -z $domain ]; then
#REMOVEME? domain=$(ynh_app_setting_get $app domain)
domain=$(ynh_app_setting_get $app domain)
fi
# Rewrite the nginx config file to redirect from ${path}_maintenance to the real url of the app.