Przeglądaj źródła

Change root check

Joachim M. Giæver 3 lat temu
rodzic
commit
2fd0e66344
1 zmienionych plików z 1 dodań i 1 usunięć
  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