From 257e05acc21fe2dbb67a816bb7e70fcb0ae63fb2 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Wed, 1 Jul 2020 08:43:32 +0200 Subject: [PATCH] fix issue with restart script and wrong devspacehelper path --- docs/pages/configuration/images/inject-restart-helper.mdx | 2 +- .../version-4.11/configuration/images/inject-restart-helper.mdx | 2 +- .../version-4.12/configuration/images/inject-restart-helper.mdx | 2 +- pkg/devspace/build/builder/restart/restart.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pages/configuration/images/inject-restart-helper.mdx b/docs/pages/configuration/images/inject-restart-helper.mdx index 21b028c68b..713b4fa721 100644 --- a/docs/pages/configuration/images/inject-restart-helper.mdx +++ b/docs/pages/configuration/images/inject-restart-helper.mdx @@ -78,7 +78,7 @@ while true; do exit_code=$? if [ -f /devspace-pid ]; then # if the sync is currently active we try to restart instead of exiting - if [ -f /tmp/sync ]; then + if [ -f /tmp/devspacehelper ]; then rm -f /devspace-pid printf "\nContainer exited with $exit_code. Will restart in 7 seconds...\n" sleep 7 diff --git a/docs/versioned_docs/version-4.11/configuration/images/inject-restart-helper.mdx b/docs/versioned_docs/version-4.11/configuration/images/inject-restart-helper.mdx index 21b028c68b..713b4fa721 100644 --- a/docs/versioned_docs/version-4.11/configuration/images/inject-restart-helper.mdx +++ b/docs/versioned_docs/version-4.11/configuration/images/inject-restart-helper.mdx @@ -78,7 +78,7 @@ while true; do exit_code=$? if [ -f /devspace-pid ]; then # if the sync is currently active we try to restart instead of exiting - if [ -f /tmp/sync ]; then + if [ -f /tmp/devspacehelper ]; then rm -f /devspace-pid printf "\nContainer exited with $exit_code. Will restart in 7 seconds...\n" sleep 7 diff --git a/docs/versioned_docs/version-4.12/configuration/images/inject-restart-helper.mdx b/docs/versioned_docs/version-4.12/configuration/images/inject-restart-helper.mdx index 21b028c68b..713b4fa721 100644 --- a/docs/versioned_docs/version-4.12/configuration/images/inject-restart-helper.mdx +++ b/docs/versioned_docs/version-4.12/configuration/images/inject-restart-helper.mdx @@ -78,7 +78,7 @@ while true; do exit_code=$? if [ -f /devspace-pid ]; then # if the sync is currently active we try to restart instead of exiting - if [ -f /tmp/sync ]; then + if [ -f /tmp/devspacehelper ]; then rm -f /devspace-pid printf "\nContainer exited with $exit_code. Will restart in 7 seconds...\n" sleep 7 diff --git a/pkg/devspace/build/builder/restart/restart.go b/pkg/devspace/build/builder/restart/restart.go index 60dc7a4316..0cc06105a1 100644 --- a/pkg/devspace/build/builder/restart/restart.go +++ b/pkg/devspace/build/builder/restart/restart.go @@ -40,7 +40,7 @@ while true; do exit_code=$? if [ -f /.devspace/devspace-pid ]; then # if the sync is currently active we try to restart instead of exiting - if [ -f /tmp/sync ]; then + if [ -f /tmp/devspacehelper ]; then rm -f /.devspace/devspace-pid printf "\nContainer exited with $exit_code. Will restart in 7 seconds...\n" sleep 7