Newer
Older
sys.usr-koeki / bin / syspull
#!/bin/sh
PATH=/usr/local/bin:$PATH
sv=www.yatex.org

# For FreeBSD ping
#if ! ping -q -t 2 $sv; then
#  echo "No network" >&2; exit 1
#fi

for d in /etc/skel /usr/koeki; do
  if [ -w $d ]; then
    git -C $d pull --quiet
  else
    echo "Call this script by user who can write to [$d]" >&2
    continue
  fi
done
for f in /usr/koeki/bin/update.d/*; do
  [ -x $f ] && $f
done