]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change builder without root
authorBastian Dehn <hhaalo@arcor.de>
Fri, 20 Dec 2024 11:09:03 +0000 (12:09 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 20 Dec 2024 11:09:03 +0000 (12:09 +0100)
builder/build-in-container

index f113eda6335b151628b80f49133819616e13f05a..79b40cfe6d0791331666eee6b465348823fcc67e 100755 (executable)
@@ -2,13 +2,6 @@
 
 main()
 {
-       user=$(whoami)
-
-       if [ "$user" != "root" ]; then
-               echo "ERROR: you must run as root"
-               exit 1
-       fi
-
        imageExists=$(podman image ls | grep sane-kds-s2000w-net-builder-bookworm)
        if [ -z "$imageExists" ]; then
                podman build -f builder/Containerfile-bookworm -t sane-kds-s2000w-net-builder-bookworm