[arkdep] Also backup subuid and subgid

This commit is contained in:
Dennis ten Hoove 2024-09-27 19:43:20 +02:00
parent 5ca9260884
commit fb39fa6457
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1

2
arkdep
View file

@ -1079,7 +1079,7 @@ deploy () {
printf '\e[1;34m-->\e[0m\e[1m Copying user account files to overlay if changed\e[0m\n' printf '\e[1;34m-->\e[0m\e[1m Copying user account files to overlay if changed\e[0m\n'
for file in passwd shadow group; do for file in passwd shadow group subuid subgid; do
# Hash old and new file to compare # Hash old and new file to compare
# No need to handle file not exist scenario, we can assume /etc/$file to always exist # No need to handle file not exist scenario, we can assume /etc/$file to always exist
declare checksum_old=($(sha256sum $arkdep_dir/overlay/etc/$file 2> /dev/null)) declare checksum_old=($(sha256sum $arkdep_dir/overlay/etc/$file 2> /dev/null))