diff --git a/CHANGELOG.md b/CHANGELOG.md index edbfaaa..c8c33dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/evomaintenance.sh b/evomaintenance.sh index 3903f2e..ba05344 100755 --- a/evomaintenance.sh +++ b/evomaintenance.sh @@ -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