Notify on backup_user_accounts

This commit is contained in:
Dennis ten Hoove 2024-02-29 10:18:43 +01:00
parent 9b8bba8626
commit c6af66c571

4
arkdep
View file

@ -672,9 +672,11 @@ deploy () {
# If backup_user_accounts is enabled automatically perform a backup
if [[ $backup_user_accounts -eq 1 ]]; then
printf '\e[1;34m-->\e[0m\e[1m Copying user account files if changed\e[0m\n'
for file in passwd shadow group; do
if ! cmp --silent $arkdep_dir/overlay/etc/$file /etc/$file; then
cp /etc/$file $arkdep_dir/overlay/etc/$file
cp -v /etc/$file $arkdep_dir/overlay/etc/$file
fi
done