viewing paste /usr/local/bin/svn-updater | Bash

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash
# /usr/local/bin/svn-updater
 
(
    umask 002
    [ ! -f /tmp/update-svn ] && mknod /tmp/update-svn
    chmod a+w /tmp/update-svn
    cd /var/www
    while true
    do
        read </tmp/update-svn
        svn update 2>&1 | cat >>/tmp/update-svn.log
    done
) >/dev/null 2>/dev/null </dev/null &
 
Viewed 312 times, submitted by unknown.