evobackupctl: update LIBDIR when copying the template

This commit is contained in:
Jérémy Lecour 2024-05-02 10:18:25 +02:00 committed by Jérémy Lecour
parent 96aa0cf7a2
commit 0d32cb2cde
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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