]> gitweb.fluxo.info Git - backupninja.git/commitdiff
set autotools markers and default application paths
authorMicah Anderson <micah@riseup.net>
Mon, 26 Nov 2012 17:30:35 +0000 (12:30 -0500)
committerMicah Anderson <micah@riseup.net>
Mon, 26 Nov 2012 17:30:40 +0000 (12:30 -0500)
handlers/dsync.in
src/backupninja.in

index 6752dad4b3cc74cd9deabbe21b6a482182753f86..d63b3be7c4d7e82d99cc255fd01f3a8b3fabdcd1 100644 (file)
@@ -169,6 +169,7 @@ function do_rotate() {
       echo "Debug: skipping rotate of $user. $backuproot doesn't exist."
       exit
    fi
+
    for rottype in daily weekly monthly; do
       seconds=\$((seconds_\${rottype}))
 
@@ -333,7 +334,7 @@ if [ "$backup" == "yes" ]; then
       do_user $testuser $btype
    else
       [ -d "$stripped_srcdir" ] || fatal "directory $stripped_srcdir not found."
-      for user in `$DOVEADM user \* | cut -d@ -f1`
+      for user in `@DOVEADM@ user \* | cut -d@ -f1`
       do
          debug $user
          [ "$user" != "" ] || continue
index 0f74906d843b147009a4d20c44ec0601fc5c2bad..3b546b4fada03046a6baa8fe93f4451d890a4810 100755 (executable)
@@ -508,6 +508,8 @@ getconf PGSQLUSER postgres
 getconf GZIP /bin/gzip
 getconf GZIP_OPTS --rsyncable
 getconf RSYNC /usr/bin/rsync
+getconf DSYNC /usr/bin/dsync
+getconf DOVEADM /usr/bin/doveadm
 getconf admingroup root
 
 # initialize vservers support