forked from evolix/ansible-roles
Jérémy Lecour
7b14296503
* manage commits with an optimized shell script instead of many slow Ansible tasks * centralize cron jobs in dedicated crontab
12 lines
215 B
Bash
12 lines
215 B
Bash
#!/bin/sh
|
|
|
|
set -u
|
|
|
|
repositories="/etc /etc/bind/ /usr/share/scripts"
|
|
|
|
for repository in ${repositories}; do
|
|
if [ -d "${repository}/.git" ]; then
|
|
git --git-dir="${repository}/.git" gc --quiet
|
|
fi
|
|
done
|