Browse Source

Change root check

Joachim M. Giæver 4 years ago
parent
commit
2fd0e66344
1 changed files with 1 additions and 1 deletions
  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