Dplacement du fichier de secrets.
darcs-hash:20061208061605-68412-0ce5c0cb57e70185e7053459c0582e9020cbce2a.gz
This commit is contained in:
parent
e937ed8613
commit
a10d09a41f
1 changed files with 5 additions and 2 deletions
|
@ -9,13 +9,16 @@ find $BASE -name '*~' -type f -exec rm -f '{}' ';'
|
||||||
chown -R respbats:adm $BASE
|
chown -R respbats:adm $BASE
|
||||||
|
|
||||||
set_dr () {
|
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
|
chmod 775 $1
|
||||||
elif [[ $1 = "$BASE/clef-wifi" ]]; then
|
elif [[ $1 = "$BASE/clef-wifi" ]]; then
|
||||||
chmod 600 $1
|
chmod 600 $1
|
||||||
elif [[ $1 = "$BASE/clef-encap" ]]; then
|
elif [[ $1 = "$BASE/clef-encap" ]]; then
|
||||||
chmod 600 $1
|
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
|
chmod 640 $1
|
||||||
else
|
else
|
||||||
chmod 664 $1
|
chmod 664 $1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue