Joachim M. Giæver 4 rokov pred
rodič
commit
2fd0e66344
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      scripts/bin/certs-daemon

+ 1 - 1
scripts/bin/certs-daemon

@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-if [ "${USER}" != "root" ]; then
+if [ `id -gn` != "root" ]; then
     echo "Run as root!"
     exit 1
 fi