1
0
Fork 0
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:
Selamanse 2017-09-27 19:52:56 +02:00
parent 7339f0527f
commit 4180d0c840
3 changed files with 4 additions and 4 deletions

View file

@ -7,8 +7,8 @@ set -eu
# IMPORT GENERIC HELPERS
#=================================================
source ./_common.sh
source /usr/share/yunohost/helpers
source ./_common.sh
#=================================================
# MANAGE SCRIPT FAILURE

View file

@ -7,8 +7,8 @@ set -u
# IMPORT GENERIC HELPERS
#=================================================
source ./_common.sh
source /usr/share/yunohost/helpers
source ./_common.sh
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)

View file

@ -9,8 +9,8 @@ if [ ! -e _common.sh ]; then
sudo cp ../settings/scripts/_common.sh ./_common.sh
sudo chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers
source _common.sh
#=================================================
# GENERIC START
@ -31,6 +31,7 @@ domain=$(ynh_app_setting_get $app domain)
path=$(ynh_app_setting_get $app path)
final_path=$(ynh_app_setting_get $app final_path)
serviceuser=$(ynh_app_setting_get $app serviceuser)
port=$(ynh_app_setting_get $app port)
# Check domain/path availability
sudo yunohost app checkurl "${domain}${path}" -a "$app" || ynh_die
@ -87,4 +88,3 @@ sudo mongorestore ./dump
sudo systemctl start rocketchat
waitforservice