etc-git : Remount /usr in rw for git gc in in /usr/share/scripts/
This commit is contained in:
parent
6434adcc62
commit
726735d269
|
@ -34,6 +34,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* generate-ldif: Correct generated entries for php-fpm in containers
|
* generate-ldif: Correct generated entries for php-fpm in containers
|
||||||
* redis: Remount /usr with RW before adding nagios plugin
|
* redis: Remount /usr with RW before adding nagios plugin
|
||||||
* postfix: Do not send mails through milters a second time after amavis (in packmail)
|
* postfix: Do not send mails through milters a second time after amavis (in packmail)
|
||||||
|
* etc-git : Remount /usr in rw for git gc in in /usr/share/scripts/
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,12 @@ repositories="/etc /etc/bind/ /usr/share/scripts"
|
||||||
|
|
||||||
for repository in ${repositories}; do
|
for repository in ${repositories}; do
|
||||||
if [ -d "${repository}/.git" ]; then
|
if [ -d "${repository}/.git" ]; then
|
||||||
|
if [ ${repository} = "/usr/share/scripts" ]; then
|
||||||
|
mount -o remount,rw /usr
|
||||||
|
fi
|
||||||
git --git-dir="${repository}/.git" gc --quiet
|
git --git-dir="${repository}/.git" gc --quiet
|
||||||
|
if [ ${repository} = "/usr/share/scripts" ]; then
|
||||||
|
mount -o remount /usr
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue