aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-05-10 16:34:57 +0200
committeryalh76 <yalh@yahoo.com>2019-05-10 16:34:57 +0200
commitae5845526a964e0ab8161acf74b060f733191c5e (patch)
treea035fb13e9d1b039593a4ea5ff1749ac8eef170f /scripts/install
parent629b59bc5357860b33417fe69eceb413185b68da (diff)
downloadmastodon_ynh-ae5845526a964e0ab8161acf74b060f733191c5e.tar.gz
mastodon_ynh-ae5845526a964e0ab8161acf74b060f733191c5e.tar.bz2
mastodon_ynh-ae5845526a964e0ab8161acf74b060f733191c5e.zip
Apply example_ynh
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/install b/scripts/install
index ffbe22d..647c6b4 100644
--- a/scripts/install
+++ b/scripts/install
@@ -103,7 +103,7 @@ fi
ynh_install_extra_repo --repo="deb https://dl.yarnpkg.com/debian/ stable main" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" --append
# install nodejs
-ynh_install_nodejs 8
+ynh_install_nodejs --nodejs_version="8"
ynh_install_app_dependencies $pkg_dependencies
@@ -130,7 +130,7 @@ ynh_script_progression --message="Setting up source files..." --time --weight=1
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
mkdir $final_path
-ynh_setup_source "$final_path/live"
+ynh_setup_source --dest_dir="$final_path/live"
#=================================================
# NGINX CONFIGURATION
@@ -272,9 +272,9 @@ yunohost service add "$app-streaming"
#=================================================
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
-ynh_systemd_action --action=start --service_name=${app}-web --line_match="Listening on tcp" --log_path=systemd
-ynh_systemd_action --action=start --service_name=${app}-sidekiq --line_match="Starting processing" --log_path=systemd
-ynh_systemd_action --action=start --service_name=${app}-streaming --line_match="Worker 1 now listening" --log_path=systemd
+ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="Listening on tcp"
+ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=systemd --line_match="Starting processing"
+ynh_systemd_action --service_name=${app}-streaming --action="start" --log_path=systemd --line_match="Worker 1 now listening"
#=================================================
# SETUP SSOWAT