some more resillience
This commit is contained in:
@ -20,16 +20,16 @@ source $FRAMEWORK_CONFIGS_FULL_PATH/FrameworkVars
|
|||||||
FrameworkIncludeFiles="$(ls -1 --color=none $FRAMEWORK_INCLUDES_FULL_PATH/*)"
|
FrameworkIncludeFiles="$(ls -1 --color=none $FRAMEWORK_INCLUDES_FULL_PATH/*)"
|
||||||
|
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
for file in ${FrameworkIncludeFiles[@]}; do
|
for file in "${FrameworkIncludeFiles[@]}"; do
|
||||||
. "$file"
|
source "$file"
|
||||||
done
|
done
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
|
|
||||||
ProjectIncludeFiles="$(ls -1 --color=none $PROJECT_INCLUDES_FULL_PATH/*)"
|
ProjectIncludeFiles="$(ls -1 --color=none $PROJECT_INCLUDES_FULL_PATH/*)"
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
for file in ${ProjectIncludeFiles[@]}; do
|
for file in "${ProjectIncludeFiles[@]}"; do
|
||||||
. "$file"
|
source "$file"
|
||||||
done
|
done
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
@ -104,7 +104,11 @@ curl --silent ${DL_ROOT}/ProjectCode/ConfigFiles/BANNERS/issue.net > /etc/issue.
|
|||||||
curl --silent ${DL_ROOT}/ProjectCode/ConfigFiles/BANNERS/motd > /etc/motd
|
curl --silent ${DL_ROOT}/ProjectCode/ConfigFiles/BANNERS/motd > /etc/motd
|
||||||
|
|
||||||
#Cron perms
|
#Cron perms
|
||||||
|
|
||||||
|
if [ -f /etc/cron.deny ]; then
|
||||||
rm /etc/cron.deny || true
|
rm /etc/cron.deny || true
|
||||||
|
fi
|
||||||
|
|
||||||
touch /etc/cron.allow
|
touch /etc/cron.allow
|
||||||
chmod g-wx,o-rwx /etc/cron.allow
|
chmod g-wx,o-rwx /etc/cron.allow
|
||||||
chown root:root /etc/cron.allow
|
chown root:root /etc/cron.allow
|
||||||
|
Reference in New Issue
Block a user