install script improvements: using getent group

This commit is contained in:
Markus Rosenstihl 2019-05-29 11:09:13 +02:00
parent d2db5baf7a
commit 4ea12ce571
2 changed files with 10 additions and 5 deletions

View File

@ -1 +1,8 @@
addgroup --system nmr #!/bin/sh
set -e
if getent group nmr; then
echo "group nmr exists alread, doing nothing"
else
addgroup --system nmr
fi

View File

@ -1,10 +1,8 @@
#!/bin/sh #!/bin/sh
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: damaris-backends # Provides: damaris-backends
# Required-Start: $syslog $local_fs # Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $local_fs # Required-Stop: $syslog $remote_fs
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: Startup script to load nmr hardware drivers for use with damaris backends # Short-Description: Startup script to load nmr hardware drivers for use with damaris backends