mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fixes ynh_die not found and port variable unbound
This commit is contained in:
parent
7339f0527f
commit
4180d0c840
3 changed files with 4 additions and 4 deletions
|
@ -7,8 +7,8 @@ set -eu
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
source ./_common.sh
|
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
source ./_common.sh
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MANAGE SCRIPT FAILURE
|
# MANAGE SCRIPT FAILURE
|
||||||
|
|
|
@ -7,8 +7,8 @@ set -u
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
source ./_common.sh
|
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
source ./_common.sh
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
|
|
|
@ -9,8 +9,8 @@ if [ ! -e _common.sh ]; then
|
||||||
sudo cp ../settings/scripts/_common.sh ./_common.sh
|
sudo cp ../settings/scripts/_common.sh ./_common.sh
|
||||||
sudo chmod a+rx _common.sh
|
sudo chmod a+rx _common.sh
|
||||||
fi
|
fi
|
||||||
source _common.sh
|
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
source _common.sh
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC START
|
# GENERIC START
|
||||||
|
@ -31,6 +31,7 @@ domain=$(ynh_app_setting_get $app domain)
|
||||||
path=$(ynh_app_setting_get $app path)
|
path=$(ynh_app_setting_get $app path)
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
final_path=$(ynh_app_setting_get $app final_path)
|
||||||
serviceuser=$(ynh_app_setting_get $app serviceuser)
|
serviceuser=$(ynh_app_setting_get $app serviceuser)
|
||||||
|
port=$(ynh_app_setting_get $app port)
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" || ynh_die
|
sudo yunohost app checkurl "${domain}${path}" -a "$app" || ynh_die
|
||||||
|
@ -87,4 +88,3 @@ sudo mongorestore ./dump
|
||||||
|
|
||||||
sudo systemctl start rocketchat
|
sudo systemctl start rocketchat
|
||||||
waitforservice
|
waitforservice
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue