diff options
author | Simon Rettberg | 2017-12-20 23:03:12 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-20 23:03:12 +0100 |
commit | f85fab6b69ef2c20ba016d64ec5344c251b6cdec (patch) | |
tree | 442df62481dcb1f6d408d9469545191bb0e0d154 /satellit_upgrader | |
parent | [SSUS] Fix/Simplify conditions and logic flow (diff) | |
download | setup-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')
-rw-r--r-- | satellit_upgrader/updater.template.sh | 6 |
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" \ |