diff --git a/CHANGELOG b/CHANGELOG index e36de4b..96618e0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.1.09......Always check/update create.sh for /tmp sane permissions. 1.1.08......Always check for host /tmp sane permissions. 1.1.07......Add Linux jails basic management to the WebGUI. 1.1.06......Add ability to manually update bastille core files. diff --git a/bastille-init b/bastille-init index 9cd1f33..fb37cdf 100755 --- a/bastille-init +++ b/bastille-init @@ -154,10 +154,14 @@ runtime_config() # Workaround to check for host /tmp sane permissions. # This is because after working with Linux jails, this may be changed to 0777 but XigmaNAS wants 1777. - if [ -d "/tmp" ]; then - TMP_PERMS=$(stat -f "%Op" "/tmp") - if [ "${TMP_PERMS}" != "41777" ]; then - chmod 1777 /tmp + if grep -qw '\"chmod\ 777\ /tmp\"' ${INSTALLPATH}/usr/local/share/bastille/create.sh; then + sed -i '' 's|\"chmod\ 777\ /tmp\"|\"chmod\ 1777\ /tmp\"|g' ${INSTALLPATH}/usr/local/share/bastille/create.sh + else + if [ -d "/tmp" ]; then + TMP_PERMS=$(stat -f "%Op" "/tmp") + if [ "${TMP_PERMS}" != "41777" ]; then + chmod 1777 /tmp + fi fi fi } diff --git a/version b/version index 6836cf1..dc3f851 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.1.08 +1.1.09