diff options
-rwxr-xr-x | sbin/itzks-update-disklserver-squashfs-images | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/itzks-update-disklserver-squashfs-images b/sbin/itzks-update-disklserver-squashfs-images index cb4adf1..1514618 100755 --- a/sbin/itzks-update-disklserver-squashfs-images +++ b/sbin/itzks-update-disklserver-squashfs-images @@ -19,6 +19,11 @@ set -e # Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +if [ $(id -u) -gt 0 ]; then + echo "ERROR: This script has to run as super-user root." + exit 1 +fi + LTSP_OPT="/srv/ltsp" # work around libpam-tmpdir not working for the |