aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-05-22 15:17:31 +0200
committeryalh76 <yalh@yahoo.com>2019-05-22 15:17:31 +0200
commit1eb5ccc9df8ff072ca42a3367fcc8de342c5a421 (patch)
tree6d110997f1fde72dbe423da6f2a9abbabd1c4730 /scripts
parent0486d088e8f9c8f5087bd55ac431696461de085e (diff)
downloadmastodon_ynh-1eb5ccc9df8ff072ca42a3367fcc8de342c5a421.tar.gz
mastodon_ynh-1eb5ccc9df8ff072ca42a3367fcc8de342c5a421.tar.bz2
mastodon_ynh-1eb5ccc9df8ff072ca42a3367fcc8de342c5a421.zip
Fix missing ports
Diffstat (limited to 'scripts')
-rw-r--r--scripts/upgrade12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 0de06df..89f35ae 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -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)