Browse Source

Update check_permissions.sh

pull/820/merge
UltimateByte 9 years ago
parent
commit
30a85996cb
  1. 3
      lgsm/functions/check_permissions.sh

3
lgsm/functions/check_permissions.sh

@ -24,6 +24,7 @@ if [ "${currentuser}" != "$(stat -c %U "${rootdir}")" ] && [ "${currentuser}" !=
fn_print_fail_nl "Oops ! Permission denied on ${rootdir}"
echo " * To check allowed user and group run ls -l ${rootdir}"
exit 1
fi
}
fn_check_permissions(){
@ -47,7 +48,7 @@ if [ -n "${functionsdir}" ]; then
do
funcperm="$(stat -c %a "${filename}")"
userfuncdirperm="${funcperm:0:1}"
groupfuncdirperm="${duncperm:1:1}"
groupfuncdirperm="${funcperm:1:1}"
if [ "${userfuncdirperm}" != "7" ] && [ "${groupfuncdirperm}" != "7" ]; then
funcpermfail="1"
conclusionpermissionerror="1"

Loading…
Cancel
Save