aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/file_perm.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2000-04-17 14:14:31 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2000-04-17 14:14:31 +0000
commitd6ab177786964fc4f6f1f7f4d04d40aa5188e3e9 (patch)
tree1548329113548120a13f45bac6843f98f9e4ad77 /init-sh/file_perm.sh
parent889758612aadb77a20ee2f82954f36a381094cb9 (diff)
downloadmsec-d6ab177786964fc4f6f1f7f4d04d40aa5188e3e9.tar
msec-d6ab177786964fc4f6f1f7f4d04d40aa5188e3e9.tar.gz
msec-d6ab177786964fc4f6f1f7f4d04d40aa5188e3e9.tar.bz2
msec-d6ab177786964fc4f6f1f7f4d04d40aa5188e3e9.tar.xz
msec-d6ab177786964fc4f6f1f7f4d04d40aa5188e3e9.zip
*** empty log message ***
Diffstat (limited to 'init-sh/file_perm.sh')
-rwxr-xr-xinit-sh/file_perm.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh
index a74a08d..f99ef97 100755
--- a/init-sh/file_perm.sh
+++ b/init-sh/file_perm.sh
@@ -8,12 +8,10 @@ fi
echo -n "Setting files permissions : "
grep -v "^#" $1 | while read file owner perm; do
- if [[ -a ${file} ]]; then
- if [[ ${owner} != current ]]; then
- chown ${owner} ${file}
- fi
- chmod ${perm} ${file}
+ if [[ ${owner} != current ]]; then
+ chown ${owner} ${file}
fi
+ chmod ${perm} ${file}
done
echo "done."