diff --git a/scripts/change_url b/scripts/change_url index f8b9da0..80fa5af 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -100,11 +100,7 @@ fi ynh_print_info "Updating .env configuration..." ynh_systemd_action --action=stop --service_name=$app --log_path="systemd" -ynh_use_nodejs -ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "$final_path/.env" -ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/.env" -ynh_replace_string "__DOMAIN_URI__" "$new_domain$new_path" "$final_path/.env" -ynh_replace_string "__PORT__" "$port" "$final_path/.env" +ynh_replace_string "$old_domain$old_path" "$new_domain$new_path" "$final_path/.env" ynh_systemd_action --action=start --service_name=$app --log_path="systemd" --line_match="Kadira: completed instrumenting the app" #================================================= diff --git a/scripts/install b/scripts/install index 32199e9..28e424c 100755 --- a/scripts/install +++ b/scripts/install @@ -271,7 +271,6 @@ systemctl reload nginx #================================================= ynh_systemd_action --action=start --service_name=$app --log_path="systemd" --line_match="Kadira: completed instrumenting the app" -sleep 10 #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 67f0303..3a728d6 100644 --- a/scripts/restore +++ b/scripts/restore @@ -130,7 +130,6 @@ systemctl reload nginx #================================================= ynh_systemd_action --action=start --service_name=$app --log_path="systemd" --line_match="Kadira: completed instrumenting the app" -sleep 10 #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 067e9b3..a72141a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -162,8 +162,7 @@ systemctl reload nginx # START SERVICE #================================================= -ynh_systemd_action --action=restart --service_name=$app --log_path="systemd" -sleep 10 +ynh_systemd_action --action=restart --service_name=$app --log_path="systemd" --line_match="Kadira: completed instrumenting the app" #================================================= # END OF SCRIPT