From 0d32cb2cde23c7ece7a3f013cefabce193ff5d42 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 2 May 2024 10:18:25 +0200 Subject: [PATCH] evobackupctl: update LIBDIR when copying the template --- client/CHANGELOG.md | 2 ++ client/bin/evobackupctl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/client/CHANGELOG.md b/client/CHANGELOG.md index 61e33ca..7f92894 100644 --- a/client/CHANGELOG.md +++ b/client/CHANGELOG.md @@ -13,6 +13,8 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Added +* evobackupctl: update LIBDIR when copying the template + ### Changed * evobackupctl: simplify the program path retrieval diff --git a/client/bin/evobackupctl b/client/bin/evobackupctl index 44faba6..02adacb 100644 --- a/client/bin/evobackupctl +++ b/client/bin/evobackupctl @@ -82,6 +82,9 @@ copy_template() { sed -i "s|@DATE@|$(date --iso-8601=seconds)|" "${dest_path}" sed -i "s|@VERSION@|${VERSION}|" "${dest_path}" + # Make sure that the library directory is correct + sed -i "s|^LIBDIR=.\+|LIBDIR=\"${LIBDIR}\"|" "${dest_path}" + printf "New evobackup script has been saved to '%s'.\n" "${dest_path}" printf "Remember to customize it (mail notifications, backup servers…).\n" exit 0