From 23ffd211a6fad885f67ba7f055c92c9f70ff3c73 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 19 Nov 2006 19:37:25 +0000 Subject: rdiff-backup and backupninja update git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@727 370017ae-e619-0410-ac65-c121f96126d4 --- others/backupninja/backupninja-0.9.4.diff | 67 ------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 others/backupninja/backupninja-0.9.4.diff (limited to 'others/backupninja/backupninja-0.9.4.diff') diff --git a/others/backupninja/backupninja-0.9.4.diff b/others/backupninja/backupninja-0.9.4.diff deleted file mode 100644 index e57a0606..00000000 --- a/others/backupninja/backupninja-0.9.4.diff +++ /dev/null @@ -1,67 +0,0 @@ -diff -Naur backupninja-0.9.4.orig/handlers/pgsql backupninja-0.9.4/handlers/pgsql ---- backupninja-0.9.4.orig/handlers/pgsql 2006-10-07 01:45:20.000000000 -0300 -+++ backupninja-0.9.4/handlers/pgsql 2006-11-02 17:43:13.000000000 -0200 -@@ -64,10 +64,10 @@ - if [ $usevserver = yes ]; then - pguid=`$VSERVER $vsname exec getent passwd $PGSQLUSER | awk -F: '{print $3}'` - else -- pguid=`getent passwd postgres | awk -F: '{print $3}'` -+ pguid=`getent passwd $PGSQLUSER | awk -F: '{print $3}'` - fi - [ -n "$pguid" ] || \ -- fatal "No user called postgres`[ $usevserver = no ] || echo \" on vserver $vsname\"`." -+ fatal "No user called $PGSQLUSER`[ $usevserver = no ] || echo \" on vserver $vsname\"`." - debug "chown $pguid $vroot$backupdir" - chown $pguid $vroot$backupdir - debug "chmod 700 $vroot$backupdir" -@@ -77,15 +77,15 @@ - if [ "$databases" == "all" ]; then - if [ $usevserver = yes ]; then - if [ "$compress" == "yes" ]; then -- execstr="$VSERVER $vsname exec su - postgres -c \"$PGSQLDUMPALL | $GZIP > $backupdir/${vsname}.sql.gz\"" -+ execstr="$VSERVER $vsname exec su - $PGSQLUSER -c \"$PGSQLDUMPALL | $GZIP > $backupdir/${vsname}.sql.gz\"" - else -- execstr="$VSERVER $vsname exec su - postgres -c \"$PGSQLDUMPALL > $backupdir/${vsname}.sql\"" -+ execstr="$VSERVER $vsname exec su - $PGSQLUSER -c \"$PGSQLDUMPALL > $backupdir/${vsname}.sql\"" - fi - else - if [ "$compress" == "yes" ]; then -- execstr="su - postgres -c \"$PGSQLDUMPALL | $GZIP > $backupdir/${localhost}-all.sql.gz\"" -+ execstr="su - $PGSQLUSER -c \"$PGSQLDUMPALL | $GZIP > $backupdir/${localhost}-all.sql.gz\"" - else -- execstr="su - postgres -c \"$PGSQLDUMPALL > $backupdir/${localhost}-all.sql\"" -+ execstr="su - $PGSQLUSER -c \"$PGSQLDUMPALL > $backupdir/${localhost}-all.sql\"" - fi - fi - debug "$execstr" -@@ -106,15 +106,15 @@ - for db in $databases; do - if [ $usevserver = yes ]; then - if [ "$compress" == "yes" ]; then -- execstr="$VSERVER $vsname exec su - postgres -c \"$PGSQLDUMP $db | $GZIP > $backupdir/${db}.sql.gz\"" -+ execstr="$VSERVER $vsname exec su - $PGSQLUSER -c \"$PGSQLDUMP $db | $GZIP > $backupdir/${db}.sql.gz\"" - else -- execstr="$VSERVER $vsname exec su - postgres -c \"$PGSQLDUMP $db | > $backupdir/${db}.sql\"" -+ execstr="$VSERVER $vsname exec su - $PGSQLUSER -c \"$PGSQLDUMP $db | > $backupdir/${db}.sql\"" - fi - else - if [ "$compress" == "yes" ]; then -- execstr="su - postgres -c \"$PGSQLDUMP $db | $GZIP > $backupdir/${db}.sql.gz\"" -+ execstr="su - $PGSQLUSER -c \"$PGSQLDUMP $db | $GZIP > $backupdir/${db}.sql.gz\"" - else -- execstr="su - postgres -c \"$PGSQLDUMP $db > $backupdir/${db}.sql\"" -+ execstr="su - $PGSQLUSER -c \"$PGSQLDUMP $db > $backupdir/${db}.sql\"" - fi - fi - debug "$execstr" -diff -Naur backupninja-0.9.4.orig/src/backupninja.in backupninja-0.9.4/src/backupninja.in ---- backupninja-0.9.4.orig/src/backupninja.in 2006-10-07 01:45:20.000000000 -0300 -+++ backupninja-0.9.4/src/backupninja.in 2006-11-02 17:45:38.000000000 -0200 -@@ -442,6 +442,7 @@ - getconf MYSQLDUMP /usr/bin/mysqldump - getconf PGSQLDUMP /usr/bin/pg_dump - getconf PGSQLDUMPALL /usr/bin/pg_dumpall -+getconf PGSQLUSER postgres - getconf GZIP /bin/gzip - getconf RSYNC /usr/bin/rsync - getconf admingroup root -- cgit v1.2.3