diff options
Diffstat (limited to 'satellit_upgrader/updater.template.sh')
-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" \ |