1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Fix missing ports

This commit is contained in:
yalh76 2019-05-22 15:17:31 +02:00
parent 0486d088e8
commit 1eb5ccc9df

View file

@ -66,6 +66,18 @@ if [[ "$admin" = "" || "$language" = "" ]]; then
ynh_die
fi
# If port_web doesn't exist, create it, need for old install
if [[ -z "$port_web" ]]; then
port_web=3000
ynh_app_setting_set --app=$app --key=port_web --value=$port_web
fi
# If port_web doesn't exist, create it, need for old install
if [[ -z "$port_stream" ]]; then
port_stream=4000
ynh_app_setting_set --app=$app --key=port_stream --value=$port_stream
fi
# If db_pwd doesn't exist, create it, need for old install
if [[ -z "$db_pwd" ]]; then
db_pwd=$(ynh_string_random)