From a10d09a41f150b91b7b76994b0a01c9909af6026 Mon Sep 17 00:00:00 2001 From: glondu Date: Fri, 8 Dec 2006 07:16:05 +0100 Subject: [PATCH] Dplacement du fichier de secrets. darcs-hash:20061208061605-68412-0ce5c0cb57e70185e7053459c0582e9020cbce2a.gz --- gestion/set_droits.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gestion/set_droits.sh b/gestion/set_droits.sh index 786a86e7..9f0b2e7a 100755 --- a/gestion/set_droits.sh +++ b/gestion/set_droits.sh @@ -9,13 +9,16 @@ find $BASE -name '*~' -type f -exec rm -f '{}' ';' chown -R respbats:adm $BASE set_dr () { - if [[ -x $1 ]] ; then + [[ ! -e $1 ]] && echo $1 + if [[ $1 = "$BASE/secrets" ]] ; then + chmod 750 $1 + elif [[ -x $1 ]] ; then chmod 775 $1 elif [[ $1 = "$BASE/clef-wifi" ]]; then chmod 600 $1 elif [[ $1 = "$BASE/clef-encap" ]]; then chmod 600 $1 - elif [[ $1 = "$BASE/secrets.py" ]] || [[ $1 = "$BASE/secrets.pyc" ]]; then + elif [[ $1 = "$BASE/secrets/secrets.py" ]] || [[ $1 = "$BASE/secrets/secrets.pyc" ]]; then chmod 640 $1 else chmod 664 $1