Add commiting changes to /etc in lxc containers

This commit is contained in:
Mathieu Trossevin 2021-08-05 11:19:15 +02:00
parent 9aa16dff73
commit a33021b041
Signed by: mtrossevin
GPG Key ID: D1DBB7EA828374E9
2 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
### Added
* Commit change in /etc of lxc containers
### Changed
### Deprecated

View File

@ -536,6 +536,11 @@ EVOCHECK_BIN="/usr/share/scripts/evocheck.sh"
GIT_REPOSITORIES="/etc /etc/bind /usr/share/scripts"
# Add /etc directories from lxc containers if they are git directories
if [ -d /var/lib/lxc ]; then
GIT_REPOSITORIES="${GIT_REPOSITORIES} $(find /var/lib/lxc/ -maxdepth 3 -name 'etc' | tr '\n' ' ' | sed 's/[[:space:]]\+$//')"
fi
# initialize variable
GIT_STATUSES=""
# git statuses