[Rear-users] SF.net SVN: rear:[691] trunk/usr/share/rear/backup/RSYNC/default/ 61_start_selinux.sh

gdha at users.sourceforge.net gdha at users.sourceforge.net
Fri Jul 15 14:54:03 CEST 2011


Revision: 691
          http://rear.svn.sourceforge.net/rear/?rev=691&view=rev
Author:   gdha
Date:     2011-07-15 12:54:03 +0000 (Fri, 15 Jul 2011)

Log Message:
-----------
duplicate of backup/RSYNC/GNU/Linux/61_start_selinux.sh

Removed Paths:
-------------
    trunk/usr/share/rear/backup/RSYNC/default/61_start_selinux.sh

Deleted: trunk/usr/share/rear/backup/RSYNC/default/61_start_selinux.sh
===================================================================
--- trunk/usr/share/rear/backup/RSYNC/default/61_start_selinux.sh	2011-07-15 08:31:55 UTC (rev 690)
+++ trunk/usr/share/rear/backup/RSYNC/default/61_start_selinux.sh	2011-07-15 12:54:03 UTC (rev 691)
@@ -1,35 +0,0 @@
-# Start SELinux if it was stopped - check presence of /tmp/selinux.mode
-
-touch "${TMP_DIR}/selinux.autorelabel"
-[ -f $TMP_DIR/selinux.mode ] && {
-
-	cat $TMP_DIR/selinux.mode > /selinux/enforce
-	Log "Restored original SELinux mode"
-	case $RSYNC_PROTO in
-
-	(ssh)
-		# for some reason rsync changes the mode of backup after each run to 666
-		ssh $RSYNC_USER@$RSYNC_HOST "chmod $v 755 ${RSYNC_PATH}/${RSYNC_PREFIX}/backup" 2>&8
-		$BACKUP_PROG -a "${TMP_DIR}/selinux.autorelabel" \
-			"$RSYNC_USER@$RSYNC_HOST:${RSYNC_PATH}/${RSYNC_PREFIX}/backup/.autorelabel" 2>&8
-		_rc=$?
-		if [ $_rc -ne 0 ]; then
-			LogPrint "Failed to create .autorelabel on ${RSYNC_PATH}/${RSYNC_PREFIX}/backup [${rsync_err_msg[$_rc]}]"
-			#StopIfError "Failed to create .autorelabel on ${RSYNC_PATH}/${RSYNC_PREFIX}/backup"
-		fi
-		;;
-
-	(rsync)
-		$BACKUP_PROG -a "${TMP_DIR}/selinux.autorelabel" \
-			"${RSYNC_PROTO}://${RSYNC_USER}@${RSYNC_HOST}:${RSYNC_PORT}/${RSYNC_PATH}/${RSYNC_PREFIX}/backup/.autorelabel"
-		_rc=$?
-		if [ $_rc -ne 0 ]; then
-			LogPrint "Failed to create .autorelabel on ${RSYNC_PATH}/${RSYNC_PREFIX}/backup [${rsync_err_msg[$_rc]}]"
-			#StopIfError "Failed to create .autorelabel on ${RSYNC_PATH}/${RSYNC_PREFIX}/backup"
-		fi
-		;;
-
-	esac
-	Log "Trigger autorelabel (SELinux) file"
-}
-


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