summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader/updater.template.sh
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-20 23:03:12 +0100
committerSimon Rettberg2017-12-20 23:03:12 +0100
commitf85fab6b69ef2c20ba016d64ec5344c251b6cdec (patch)
tree442df62481dcb1f6d408d9469545191bb0e0d154 /satellit_upgrader/updater.template.sh
parent[SSUS] Fix/Simplify conditions and logic flow (diff)
downloadsetup-scripts-f85fab6b69ef2c20ba016d64ec5344c251b6cdec.tar.gz
setup-scripts-f85fab6b69ef2c20ba016d64ec5344c251b6cdec.tar.xz
setup-scripts-f85fab6b69ef2c20ba016d64ec5344c251b6cdec.zip
[SSUS] Fix: Only try to install dnbd3-server if included in updater
Diffstat (limited to 'satellit_upgrader/updater.template.sh')
-rw-r--r--satellit_upgrader/updater.template.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index b1b7d17..c3b21f4 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -467,8 +467,12 @@ if [ -e "$FILEDIR/rpc.acl" ]; then
echo "rpc.acl inserted (dnbd3)"
fi
+if [ -n "$TGZ_DNBD3" ]; then
+ echo "Extracting new dnbd3-server binary"
+ tar -x -C "$PATH_DNBD3" -f "$TMPDIR/$TGZ_DNBD3" || perror "Could not extract $TGZ_DNBD3 to $PATH_DNBD3"
+fi
+
# ********************** dnbd3.service *******************
-tar -x -C "$PATH_DNBD3" -f "$TMPDIR/$TGZ_DNBD3" || perror "Could not extract $TGZ_DNBD3 to $PATH_DNBD3"
if [ -e "$FILEDIR/dnbd3-server.service" ]; then
echo "* Replacing/writing dnbd3-server.service"
cp "$FILEDIR/dnbd3-server.service" "/etc/systemd/system/dnbd3-server.service" \