diff options
-rwxr-xr-x | sbin/itzks-update-disklserver-squashfs-images | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sbin/itzks-update-disklserver-squashfs-images b/sbin/itzks-update-disklserver-squashfs-images index 55b4757..c46c616 100755 --- a/sbin/itzks-update-disklserver-squashfs-images +++ b/sbin/itzks-update-disklserver-squashfs-images @@ -19,6 +19,14 @@ LTSP_OPT="/srv/ltsp" +# work around libpam-tmpdir not working for the +# root user and /tmp being too small anyway... +TMPDIR="/srv/tmp" +export TMPDIR +mkdir -p ${TMPDIR}/ +chown root:root ${TMPDIR} +chmod 1777 ${TMPDIR} + ltsp_chroots=$(ls "${LTSP_OPT}" | while read chroot_dir; do test ! -h "${LTSP_OPT}/${chroot_dir}" -a -x "${LTSP_OPT}/${chroot_dir}/bin/bash" && echo -n "${chroot_dir} "; done) for chroot in ${ltsp_chroots}; do |