diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-14 13:09:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-14 13:09:39 +0100 |
commit | cab25b6b3e9f5d103b59941e1f897a78a9713dfb (patch) | |
tree | bc4062ac531b911b53c04a485ad5e36e5c5d2a9c /sbin/itzks-update-disklserver-squashfs-images | |
parent | c7c81e760501f524d53d07c3624de4f019325c5e (diff) | |
download | itzks-systems-cab25b6b3e9f5d103b59941e1f897a78a9713dfb.tar.gz itzks-systems-cab25b6b3e9f5d103b59941e1f897a78a9713dfb.tar.bz2 itzks-systems-cab25b6b3e9f5d103b59941e1f897a78a9713dfb.zip |
sbin/itzks-update-disklserver-squashfs-images: Stop script run, if not run.
Diffstat (limited to 'sbin/itzks-update-disklserver-squashfs-images')
-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 |