[Rear-users] SF.net SVN: rear:[629] trunk/usr/share/rear/backup

gdha at users.sourceforge.net gdha at users.sourceforge.net
Wed Jun 22 10:36:01 CEST 2011


Revision: 629
          http://rear.svn.sourceforge.net/rear/?rev=629&view=rev
Author:   gdha
Date:     2011-06-22 08:36:01 +0000 (Wed, 22 Jun 2011)

Log Message:
-----------
- added basename to avoid the do nothing trap
- removed a comment

Modified Paths:
--------------
    trunk/usr/share/rear/backup/NETFS/GNU/Linux/30_stop_selinux.sh
    trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh

Modified: trunk/usr/share/rear/backup/NETFS/GNU/Linux/30_stop_selinux.sh
===================================================================
--- trunk/usr/share/rear/backup/NETFS/GNU/Linux/30_stop_selinux.sh	2011-06-22 06:58:57 UTC (rev 628)
+++ trunk/usr/share/rear/backup/NETFS/GNU/Linux/30_stop_selinux.sh	2011-06-22 08:36:01 UTC (rev 629)
@@ -1,6 +1,6 @@
 # Stop SELinux if present with tar backup
 [ -f /selinux/enforce ] || return
-case "${BACKUP_PROG}" in
+case "$(basename ${BACKUP_PROG})" in
 	(tar|rsync)
 		cat /selinux/enforce > $TMP_DIR/selinux.mode
 		echo "0" > /selinux/enforce

Modified: trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh
===================================================================
--- trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh	2011-06-22 06:58:57 UTC (rev 628)
+++ trunk/usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh	2011-06-22 08:36:01 UTC (rev 629)
@@ -23,7 +23,7 @@
 				(ssh)
 					Log $BACKUP_PROG "${RSYNC_OPTIONS[@]}" $(cat $BUILD_DIR/backup-include.txt) "${RSYNC_USER}@${RSYNC_HOST}:${RSYNC_PATH}/${RSYNC_PREFIX}/backup"
 					$BACKUP_PROG "${RSYNC_OPTIONS[@]}" $(cat $BUILD_DIR/backup-include.txt) \
-					"${RSYNC_USER}@${RSYNC_HOST}:${RSYNC_PATH}/${RSYNC_PREFIX}/backup" # 2>/dev/null
+					"${RSYNC_USER}@${RSYNC_HOST}:${RSYNC_PATH}/${RSYNC_PREFIX}/backup"  2>/dev/null
 					;;
 
 				(rsync)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list