aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-05-15 23:26:46 +0200
committerGitHub <noreply@github.com>2019-05-15 23:26:46 +0200
commit0486d088e8f9c8f5087bd55ac431696461de085e (patch)
tree055d36241e68a9d7d3af3871f75a661f97d10af1 /scripts/install
parentdbf54b44465bb11e4161e2c0c614e293213c70fd (diff)
parentcd046117a5b300ba67faf4d6b25bb1c44fb774d2 (diff)
downloadmastodon_ynh-0486d088e8f9c8f5087bd55ac431696461de085e.tar.gz
mastodon_ynh-0486d088e8f9c8f5087bd55ac431696461de085e.tar.bz2
mastodon_ynh-0486d088e8f9c8f5087bd55ac431696461de085e.zip
Merge pull request #144 from YunoHost-Apps/example_ynh
example_ynh corrections
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install
index 2742e1d..396fd76 100644
--- a/scripts/install
+++ b/scripts/install
@@ -77,8 +77,8 @@ ynh_app_setting_set --app=$app --key=language --value=$language
ynh_script_progression --message="Configuring firewall..." --weight=1
# Find a free port
-port_web=$(ynh_find_port 3000)
-port_stream=$(ynh_find_port 4000)
+port_web=$(ynh_find_port --port=3000)
+port_stream=$(ynh_find_port --port=4000)
# Open this port
ynh_app_setting_set --app=$app --key=port_web --value=$port_web
ynh_app_setting_set --app=$app --key=port_stream --value=$port_stream
@@ -230,7 +230,7 @@ ynh_add_systemd_config --service="$app-streaming" --template="mastodon-streaming
ynh_script_progression --message="Storing the config file checksum..." --weight=1
# Calculate and store the config file checksum into the app settings
-ynh_store_file_checksum "${final_path}/live/.env.production"
+ynh_store_file_checksum --file="${final_path}/live/.env.production"
#=================================================
# GENERIC FINALIZATION