libresh / libre.sh

Moved to https://lab.libreho.st/libre.sh/compose.libre.sh
GNU Affero General Public License v3.0
189 stars 22 forks source link

Modularize git-puller #119

Closed pierreozoux closed 8 years ago

pierreozoux commented 8 years ago
[Unit]
Description=Git pull on every git repo

[Service]
Type=oneshot
TimeoutStartSec=0
ExecStart=/bin/bash -euxc ' \
  for directory in `find /data/domains/ -mindepth 3 -name .git -type d -prune -not -path "*/owncloud/data/*"`;do \
    cd $directory; cd ..;\
    git pull; \
  done'
pierreozoux commented 8 years ago

done!