aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/file_perm.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-11-21 10:21:35 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-11-21 10:21:35 +0000
commita5b572c4a4e73bc0b369c20c9cdf7b2f5804b8ea (patch)
treec034eff966c53778d419a8a92a594a63f61c5650 /init-sh/file_perm.sh
parentd54dc7df63f32c3353fef943c32e67c6958512af (diff)
downloadmsec-a5b572c4a4e73bc0b369c20c9cdf7b2f5804b8ea.tar
msec-a5b572c4a4e73bc0b369c20c9cdf7b2f5804b8ea.tar.gz
msec-a5b572c4a4e73bc0b369c20c9cdf7b2f5804b8ea.tar.bz2
msec-a5b572c4a4e73bc0b369c20c9cdf7b2f5804b8ea.tar.xz
msec-a5b572c4a4e73bc0b369c20c9cdf7b2f5804b8ea.zip
no longer needed (since the switch to python)
Diffstat (limited to 'init-sh/file_perm.sh')
-rwxr-xr-xinit-sh/file_perm.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh
deleted file mode 100755
index f69b222..0000000
--- a/init-sh/file_perm.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-if [[ ! -s $1 ]]; then
- echo "I need a msec permfile in argument".
- exit 1
-fi
-
-echo -n "Setting files permissions : "
-
-grep -v "^#" $1 | while read file owner perm; do
- if [[ ${owner} != current ]]; then
- chown ${owner} ${file} >& /dev/null
- fi
- chmod ${perm} ${file} >& /dev/null
-done
-
-echo "done."
-