Blob Blame History Raw
--- a/handlers/dup.helper.in	2018-06-29 22:12:42.000000000 +0600
+++ b/handlers/dup.helper.in	2018-12-30 04:27:40.251026730 +0600
@@ -624,7 +624,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	2018-06-29 22:12:42.000000000 +0600
+++ b/handlers/rdiff.helper.in	2018-12-30 04:27:40.251026730 +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
@@ -437,7 +437,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	2018-06-29 22:12:42.000000000 +0600
+++ b/src/ninjahelper.in	2018-12-30 04:27:40.251026730 +0600
@@ -27,11 +27,11 @@
 ##
 require_packages() {
    for pkg in "$@"; do
-      installed=`dpkg -s $pkg | grep 'ok installed'`
+      installed=`yum list installed $pkg 2>/dev/null | grep -i 'installed'`
       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