From 458c7d36cce61af5e2e25d247b46c491627b45fe Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 16 Jun 2018 11:36:06 +0200 Subject: [PATCH] core-updates: don't restart pakfire at error Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/121/update.sh | 2 ++ config/rootfiles/core/122/update.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/rootfiles/core/121/update.sh b/config/rootfiles/core/121/update.sh index 1d4bd53068..4d19e48f59 100644 --- a/config/rootfiles/core/121/update.sh +++ b/config/rootfiles/core/121/update.sh @@ -29,6 +29,8 @@ core=121 exit_with_error() { # Set last succesfull installed core. echo $(($core-1)) > /opt/pakfire/db/core/mine + # don't start pakfire again at error + killall -KILL pak_update /usr/bin/logger -p syslog.emerg -t ipfire \ "core-update-${core}: $1" exit $2 diff --git a/config/rootfiles/core/122/update.sh b/config/rootfiles/core/122/update.sh index 6105bf280b..71d197db8f 100644 --- a/config/rootfiles/core/122/update.sh +++ b/config/rootfiles/core/122/update.sh @@ -29,6 +29,8 @@ core=122 exit_with_error() { # Set last succesfull installed core. echo $(($core-1)) > /opt/pakfire/db/core/mine + # don't start pakfire again at error + killall -KILL pak_update /usr/bin/logger -p syslog.emerg -t ipfire \ "core-update-${core}: $1" exit $2 -- 2.39.5