From 21021353aaa67799efc430359f5528f8f08e8592 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Thu, 29 Feb 2024 20:19:39 +0100 Subject: [PATCH] Do not run passwd backup if root override set --- arkdep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkdep b/arkdep index 27650b2..70b7466 100755 --- a/arkdep +++ b/arkdep @@ -669,8 +669,8 @@ deploy () { # Add overlay if enabled if [[ $enable_overlay -eq 1 ]]; then - # If backup_user_accounts is enabled automatically perform a backup - if [[ $backup_user_accounts -eq 1 ]]; then + # If backup_user_accounts is enabled automatically perform a backup, do not run if custom root is defined + if [[ $backup_user_accounts -eq 1 ]] && [[ ! -n $ARKDEP_ROOT ]]; then printf '\e[1;34m-->\e[0m\e[1m Copying user account files to overlay if changed\e[0m\n'