diff --git a/manifest.json b/manifest.json index 779dc26..da00220 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Online editor providing collaborative editing in real-time.", "fr": "Éditeur en ligne fournissant l'édition collaborative en temps réel." }, - "version": "1.8.7~ynh1", + "version": "1.8.7~ynh2", "url": "https://etherpad.org/", "license": "Apache-2.0", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 5075c93..72e3749 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,7 +7,7 @@ # dependencies used by the app pkg_dependencies="postgresql postgresql-contrib apt-transport-https" -nodejs_version=12 +nodejs_version=14 #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index c250403..cb8f5ab 100644 --- a/scripts/install +++ b/scripts/install @@ -119,7 +119,7 @@ ynh_script_progression --message="Installing Etherpad..." --weight=60 chown -R $app: $final_path -pushd "$final_path" || ynh_die +pushd $final_path || ynh_die ynh_use_nodejs ynh_exec_as $app env "$ynh_node_load_PATH" bin/installDeps.sh popd || ynh_die diff --git a/scripts/upgrade b/scripts/upgrade index e34d7e3..027ad0c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,7 +71,7 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=42 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=stop --log_path="/var/log/$app/$app.log" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -117,7 +117,7 @@ ynh_script_progression --message="Installing Etherpad..." --weight=90 chown -R $app: $final_path -pushd "$final_path" || ynh_die +pushd $final_path || ynh_die ynh_use_nodejs ynh_exec_as $app env $ynh_node_load_PATH bin/installDeps.sh popd || ynh_die