More ltsp fixes.
This commit is contained in:
parent
6d8b36e09d
commit
bc369085c7
@ -18,12 +18,13 @@ dir_writeable()
|
|||||||
|
|
||||||
cleanup_tmp_dir()
|
cleanup_tmp_dir()
|
||||||
{
|
{
|
||||||
local dir=$1
|
local dir="$1"
|
||||||
|
|
||||||
if ! [ -d "${dir}" ]; then
|
if ! [ -d "${dir}" ]; then
|
||||||
mkdir -p "${dir}" || return $?
|
mkdir -p "${dir}" || return $?
|
||||||
fi
|
fi
|
||||||
dir_writeable "${dir}" || return 1
|
dir_writeable "${dir}" || return 1
|
||||||
|
chmod +t "${dir}"
|
||||||
cd "${dir}"
|
cd "${dir}"
|
||||||
if yesno ${wipe_tmp:-${WIPE_TMP:-yes}}; then
|
if yesno ${wipe_tmp:-${WIPE_TMP:-yes}}; then
|
||||||
ebegin "Wiping ${dir} directory"
|
ebegin "Wiping ${dir} directory"
|
||||||
@ -112,7 +113,6 @@ start()
|
|||||||
for tmp in ${wipe_tmp_dirs-/tmp}; do
|
for tmp in ${wipe_tmp_dirs-/tmp}; do
|
||||||
cleanup_tmp_dir "${tmp}"
|
cleanup_tmp_dir "${tmp}"
|
||||||
done
|
done
|
||||||
chmod +t /tmp /var/tmp
|
|
||||||
|
|
||||||
if dir_writeable /tmp; then
|
if dir_writeable /tmp; then
|
||||||
# Make sure our X11 stuff have the correct permissions
|
# Make sure our X11 stuff have the correct permissions
|
||||||
@ -133,6 +133,7 @@ start()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f /etc/nologin
|
rm -f /etc/nologin
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
stop()
|
stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user