Browse Source

chore(package): make sure 'nobody' user & group exists on the target system

Mustafa Arici 8 years ago
parent
commit
002d37cf2d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      contrib/afterinstall.sh

+ 5 - 0
contrib/afterinstall.sh

@@ -1 +1,6 @@
+export USER="nobody"
+export GROUP="nobody"
+id -u $USER &>/dev/null || useradd $USER
+id -u $GROUP &>/dev/null || useradd $GROUP
+
 systemctl daemon-reload