Set backup=1 or lxc mountpooint

This commit is contained in:
Thorsten Spille 2023-06-30 11:45:29 +02:00 committed by GitHub
parent 806cc1c604
commit 9ca05ed0f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ fi
sleep 2 sleep 2
if [ $LXC_MP -gt 0 ]; then if [ $LXC_MP -gt 0 ]; then
pct set $LXC_NBR -mp0 $LXC_SHAREFS_STORAGE:$LXC_SHAREFS_SIZE,mp=/$LXC_SHAREFS_MOUNTPOINT pct set $LXC_NBR -mp0 $LXC_SHAREFS_STORAGE:$LXC_SHAREFS_SIZE,backup=1,mp=/$LXC_SHAREFS_MOUNTPOINT
fi fi
sleep 2; sleep 2;
@ -182,4 +182,4 @@ if [[ $service == "zmb-ad" ]]; then
elif [[ $service == "zmb-ad-join" ]]; then elif [[ $service == "zmb-ad-join" ]]; then
pct set $LXC_NBR -nameserver "${LXC_IP%/*} $LXC_DNS" pct set $LXC_NBR -nameserver "${LXC_IP%/*} $LXC_DNS"
fi fi
pct start $LXC_NBR pct start $LXC_NBR