install script improvements: using getent group
This commit is contained in:
parent
d2db5baf7a
commit
4ea12ce571
7
debian/damaris-modules.postinst
vendored
7
debian/damaris-modules.postinst
vendored
@ -1 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if getent group nmr; then
|
||||||
|
echo "group nmr exists alread, doing nothing"
|
||||||
|
else
|
||||||
addgroup --system nmr
|
addgroup --system nmr
|
||||||
|
fi
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user