Notification time stamped 2022-05-31 23:06:22 UTC
From bdf1b442f9581c09373aaa06bd9912d0e04501eb Mon Sep 17 00:00:00 2001
From: Denis Fateyev <denis(a)fateyev.com>
Date: Nov 22 2014 17:43:32 +0000
Subject: backupninja: redhat specific fix
---
diff --git a/backupninja-1.0.1-redhat.patch b/backupninja-1.0.1-redhat.patch
new file mode 100644
index 0000000..459c701
--- /dev/null
+++ b/backupninja-1.0.1-redhat.patch
@@ -0,0 +1,56 @@
+--- a/handlers/dup.helper.in 2012-06-30 00:35:47.000000000 +0600
++++ b/handlers/dup.helper.in 2014-11-17 00:49:52.172966826 +0600
+@@ -588,7 +588,7 @@
+
+ # Global variables whose '*' shall not be expanded
+ set -o noglob
+- dup_default_includes="/var/spool/cron/crontabs /var/backups /etc /root /home
/usr/local/*bin /var/lib/dpkg/status*"
++ dup_default_includes="/var/spool/cron /var/backups /etc /root /home
/usr/local/*bin"
+ dup_default_excludes="/home/*/.gnupg /home/*/.local/share/Trash /home/*/.Trash
/home/*/.thumbnails /home/*/.beagle /home/*/.aMule /home/*/gtk-gnutella-downloads
/var/cache/backupninja/duplicity"
+ set +o noglob
+
+--- a/handlers/rdiff.helper.in 2012-06-30 00:35:47.000000000 +0600
++++ b/handlers/rdiff.helper.in 2014-11-17 00:49:12.383983427 +0600
+@@ -243,7 +243,7 @@
+ if [ "$rdiff_user" = "root" ]; then
+ booleanBox "install rdiff-backup?" "It seems like the remote
machine does not have rdiff-backup installed, I can attempt to install rdiff-backup on the
remote machine.\n\n\nDo you want me to attempt this now?"
+ if [ $? = 0 ]; then
+- ssh $rdiff_user@$rdiff_host 'apt-get install rdiff-backup'
++ ssh $rdiff_user@$rdiff_host 'yum install rdiff-backup'
+ result=$?
+ echo "Hit return to continue."
+ read
+@@ -414,7 +414,7 @@
+
+ # Global variables whose '*' shall not be expanded
+ set -o noglob
+- rdiff_includes=(/var/spool/cron/crontabs /var/backups /etc /root /home
/usr/local/*bin /var/lib/dpkg/status*)
++ rdiff_includes=(/var/spool/cron /var/backups /etc /root /home /usr/local/*bin)
+ rdiff_excludes=(/home/*/.gnupg /home/*/.local/share/Trash /home/*/.Trash
/home/*/.thumbnails /home/*/.beagle /home/*/.aMule /home/*/gtk-gnutella-downloads
/var/cache/backupninja/duplicity)
+ rdiff_vsincludes=
+ set +o noglob
+--- a/src/ninjahelper.in 2012-06-30 00:35:47.000000000 +0600
++++ b/src/ninjahelper.in 2014-11-17 00:03:26.113218022 +0600
+@@ -27,11 +27,11 @@
+ ##
+ require_packages() {
+ for pkg in "$@"; do
+- installed=`dpkg -s $pkg | grep 'ok installed'`
++ installed=`yum list installed $pkg >/dev/null 2>&1`
+ if [ -z "$installed" ]; then
+ booleanBox "install $pkg?" "This backup action requires package
$pkg. Do you want to install it now?"
+ if [ $? = 0 ]; then
+- apt-get install $pkg
++ yum install $pkg
+ echo "hit return to continue...."
+ read
+ fi
+@@ -166,7 +166,7 @@
+ echo -n "(yes/no): "
+ read install
+ if [ "$install" == "yes" ]; then
+- apt-get install dialog
++ yum install dialog
+ break
+ elif [ "$install" == "no" ]; then
+ exit
https://src.fedoraproject.org/rpms/backupninja/c/bdf1b442f9581c09373aaa06...