From f18f5cab806ee0323f6b523d0e3ed9948a470152 Mon Sep 17 00:00:00 2001 From: David Sterry Date: Thu, 9 Dec 2021 20:02:41 -0800 Subject: [PATCH] remove ineffectual arguments and stop timeouts on systemd startup --- manifest.json | 31 ------------------------------- scripts/install | 12 +++--------- scripts/restore | 5 +++-- 3 files changed, 6 insertions(+), 42 deletions(-) diff --git a/manifest.json b/manifest.json index 915b931..2323992 100644 --- a/manifest.json +++ b/manifest.json @@ -30,42 +30,11 @@ "name": "domain", "type": "domain" }, - { - "name": "path", - "type": "path", - "example": "/", - "default": "/" - }, - { - "name": "admin", - "type": "user" - }, { "name": "is_public", "type": "boolean", "default": true }, - { - "name": "language", - "type": "string", - "ask": { - "en": "Choose the application language", - "fr": "Choisissez la langue de l'application" - }, - "choices": [ - "fr", - "en" - ], - "default": "fr" - }, - { - "name": "password", - "type": "password", - "help": { - "en": "Use the help field to add an information for the admin about this question.", - "fr": "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question." - } - } ] } } diff --git a/scripts/install b/scripts/install index d98facc..7ec6437 100644 --- a/scripts/install +++ b/scripts/install @@ -26,11 +26,8 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=$YNH_APP_ARG_PATH -admin=$YNH_APP_ARG_ADMIN +path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC -language=$YNH_APP_ARG_LANGUAGE -password=$YNH_APP_ARG_PASSWORD ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID @@ -71,9 +68,6 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url ynh_script_progression --message="Storing installation settings..." --time --weight=1 ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=admin --value=$admin -ynh_app_setting_set --app=$app --key=language --value=$language #================================================= # STANDARD MODIFICATIONS @@ -299,8 +293,8 @@ yunohost service add "$app-sidekiq" --description="$app sidekiq service" #================================================= ynh_script_progression --message="Starting a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="Listening on" -ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=systemd --line_match="Schedules Loaded" +ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="listening on" +ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=systemd --line_match="Booted Rails" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index fcaba76..bca979b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -72,6 +72,7 @@ ynh_restore_file --origin_path="$final_path" # files in some cases. # But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder - # this will be treated as a security issue. +mkdir -p "$final_path/tmp/pids" chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -163,8 +164,8 @@ yunohost service add "$app-sidekiq" --description="$app sidekiq service" #================================================= ynh_script_progression --message="Starting a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="Listening on" -ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=systemd --line_match="Schedules Loaded" +ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="listening on" +ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=systemd --line_match="Booted Rails" #================================================= # GENERIC FINALIZATION