From 9fa103d8aefa8f13ddd8d76be140e4dd55886f1c Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Mon, 30 Oct 2023 00:35:42 +0100 Subject: [PATCH] Fix backup script --- src/zmb-ad-join/install-service.sh | 2 +- src/zmb-ad/install-service.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zmb-ad-join/install-service.sh b/src/zmb-ad-join/install-service.sh index 4601e10..f51cf66 100644 --- a/src/zmb-ad-join/install-service.sh +++ b/src/zmb-ad-join/install-service.sh @@ -180,7 +180,7 @@ prune () { } echo "\$(date) Starting samba-ad-dc online backup" -if echo -e "${LXC_ADMIN_PASS}" | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then +if echo -e '${ZMB_ADMIN_PASS}' | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then echo "\$(date) Finished samba-ad-dc online backup. Cleaning up old online backups..." prune online else diff --git a/src/zmb-ad/install-service.sh b/src/zmb-ad/install-service.sh index f4e6e17..21e5a52 100644 --- a/src/zmb-ad/install-service.sh +++ b/src/zmb-ad/install-service.sh @@ -158,7 +158,7 @@ prune () { } echo "\$(date) Starting samba-ad-dc online backup" -if echo -e "${LXC_ADMIN_PASS}" | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then +if echo -e '${ZMB_ADMIN_PASS}' | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then echo "\$(date) Finished samba-ad-dc online backup. Cleaning up old online backups..." prune online else