diff --git a/manifest.json b/manifest.json index b45366f..31622dc 100644 --- a/manifest.json +++ b/manifest.json @@ -13,7 +13,7 @@ "name": "eric_G" }, "requirements": { - "yunohost": ">= 4.0.8" + "yunohost": ">= 3.8.1" }, "multi_instance": true, "services": [ diff --git a/scripts/_common.sh b/scripts/_common.sh index 0f7d687..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=13 +nodejs_version=14 #================================================= # PERSONAL HELPERS diff --git a/scripts/change_url b/scripts/change_url index a5f4437..dc86cc3 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -114,7 +114,8 @@ ynh_systemd_action --service_name=nginx --action=reload ynh_script_progression --message="Starting a systemd service..." --weight=6 # Start a systemd service -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Your Etherpad version is" +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Your Etherpad version is" +sleep 120 #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index 1af837c..b2f051f 100644 --- a/scripts/install +++ b/scripts/install @@ -180,7 +180,7 @@ yunohost service add $app --description="Collaborative editor." --log="/var/log/ ynh_script_progression --message="Starting a systemd service..." --weight=6 # Start a systemd service -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Your Etherpad version is" +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Your Etherpad version is" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 9c3d6e3..5dc0ae4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -114,7 +114,8 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=8 -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Your Etherpad version is" +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Your Etherpad version is" +sleep 120 #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 671c01e..4503d4a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -169,7 +169,7 @@ yunohost service add $app --description="Collaborative editor." --log="/var/log/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=6 -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Your Etherpad version is" +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Your Etherpad version is" #================================================= # RELOAD NGINX