From cab25b6b3e9f5d103b59941e1f897a78a9713dfb Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 14 Jan 2022 13:09:39 +0100 Subject: sbin/itzks-update-disklserver-squashfs-images: Stop script run, if not run. --- sbin/itzks-update-disklserver-squashfs-images | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sbin/itzks-update-disklserver-squashfs-images') 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 -- cgit v1.2.3