Notify on backup_user_accounts
This commit is contained in:
parent
9b8bba8626
commit
c6af66c571
1 changed files with 3 additions and 1 deletions
4
arkdep
4
arkdep
|
@ -672,9 +672,11 @@ deploy () {
|
||||||
# If backup_user_accounts is enabled automatically perform a backup
|
# If backup_user_accounts is enabled automatically perform a backup
|
||||||
if [[ $backup_user_accounts -eq 1 ]]; then
|
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
|
for file in passwd shadow group; do
|
||||||
if ! cmp --silent $arkdep_dir/overlay/etc/$file /etc/$file; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue