From e3cdec5f4e88f21773cfa2842d8be6e3f44d94e2 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 21 Oct 2013 13:21:24 +0000 Subject: [PATCH] =?UTF-8?q?Permet=20de=20d=C3=A9sactiver=20fixperms=20"pro?= =?UTF-8?q?prement",=20avec=20un=20fichier=20de=20=C2=ABlock=C2=BB.=20Util?= =?UTF-8?q?e=20pour=20les=20maj=20de=20grosse=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fixperms.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/fixperms.sh b/src/fixperms.sh index b230acbb..6ae6e505 100755 --- a/src/fixperms.sh +++ b/src/fixperms.sh @@ -36,6 +36,18 @@ query="SELECT uid,login FROM membres ORDER BY login" sub_dir="" file="" +LOCK_FIXPERMS="/etc/alternc/disable_all_fixperms" + +if [ -f "$LOCK_FIXPERMS" ] ; then + ( + echo " ------------- " + echo '/!\ WARNING /!\ ' + echo "The fixperms script is disabled" + echo "To enable it, delete $LOCK_FIXPERMS " + echo " ------------- " + ) 1>&2 + exit 0 +fi while getopts "l:u:f:d:" optname do