diff --git a/scripts/backup b/scripts/backup index e82f3c4..84fd6da 100755 --- a/scripts/backup +++ b/scripts/backup @@ -91,7 +91,7 @@ ynh_backup --src_path="$calibre_dir" --is_big #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=5 -ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 20 +ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 30 #================================================= diff --git a/scripts/change_url b/scripts/change_url index f2e0d29..cbed4c2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -120,7 +120,7 @@ fi #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 20 +ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 30 #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 6b51a55..07fb946 100755 --- a/scripts/install +++ b/scripts/install @@ -175,7 +175,7 @@ chown -R $app:$app /var/log/$app #================================================= ynh_script_progression --message="Setting up database and settings..." --weight=5 #we need to start and stop the service so that initial app.db file is created and that we can set default data -ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" --log_path="$final_path/calibre-web.log" -t 20 +ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" --log_path="$final_path/calibre-web.log" -t 30 #sleep required on low spec like raspberryPi sleep 2s #remove unwanted calibre-web.log @@ -234,7 +234,7 @@ fi #================================================= ynh_script_progression --message="Reload nginx and start $app..." --weight=5 ynh_systemd_action --service_name=nginx --action=reload -ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" -t 20 +ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" -t 30 #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 8cb9130..eb2caed 100755 --- a/scripts/restore +++ b/scripts/restore @@ -165,7 +165,7 @@ ynh_systemd_action --service_name=nginx --action=reload #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 20 +ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 30 #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index d73c173..d59b54b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,7 +98,7 @@ if version_gt "0.6.6" "$current_upstream_app_version" && [ "$current_upstream_pa pip install --no-cache-dir --upgrade --target $final_path/vendor -r $final_path/requirements.txt chown -R $app: $final_path #set database settings as per conf file : restart server so that app.db is regenerated - ynh_systemd_action --service_name=$app --action="start" --line_match="Starting Gevent server" --log_path="$final_path/calibre-web.log" -t 20 + ynh_systemd_action --service_name=$app --action="start" --line_match="Starting Gevent server" --log_path="$final_path/calibre-web.log" -t 30 #sleep required on low spec like raspberryPi sleep 2s ynh_systemd_action --service_name=$app --action="stop" @@ -170,9 +170,9 @@ ynh_backup_if_checksum_is_different "$final_path/app.db" #set database settings as per conf file : restart server so that app.db is regenerated, then add new ldap & log settings if [ "$current_upstream_app_version" == '0.6.6' ]; then - ynh_systemd_action --service_name=$app --action="start" --line_match="server on " --log_path="$final_path/calibre-web.log" -t 20 + ynh_systemd_action --service_name=$app --action="start" --line_match="server on " --log_path="$final_path/calibre-web.log" -t 30 else - ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" -t 20 + ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" -t 30 fi #sleep required on low spec like raspberryPi sleep 2s @@ -243,7 +243,7 @@ ynh_systemd_action --service_name=nginx --action=reload #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 20 +ynh_systemd_action --service_name=$app --action="start" -l "server on :$port" -t 30 #================================================= # END OF SCRIPT