mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 14:26:48 +08:00
Moved adduser from preinst to postinst
This commit is contained in:
@@ -51,6 +51,7 @@ Package: openalpr-daemon
|
|||||||
Section: video
|
Section: video
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: libopenalpr2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends},
|
Depends: libopenalpr2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends},
|
||||||
|
adduser,
|
||||||
beanstalkd
|
beanstalkd
|
||||||
Description: Daemon to run OpenALPR in the background
|
Description: Daemon to run OpenALPR in the background
|
||||||
OpenALPR is an open source Automatic License Plate Recognition library written
|
OpenALPR is an open source Automatic License Plate Recognition library written
|
||||||
|
@@ -4,6 +4,11 @@ set -e
|
|||||||
# Source debconf library.
|
# Source debconf library.
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
# Create openalpr:openalpr if it doesn't already exist
|
||||||
|
USER=openalpr
|
||||||
|
GROUP=openalpr
|
||||||
|
getent group $GROUP >/dev/null || addgroup $GROUP >/dev/null
|
||||||
|
getent passwd $USER >/dev/null || adduser --system --no-create-home --home /nonexistent $USER >/dev/null
|
||||||
|
|
||||||
chown openalpr:openalpr /var/lib/openalpr/plateimages
|
chown openalpr:openalpr /var/lib/openalpr/plateimages
|
||||||
|
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Create openalpr:openalpr if it doesn't already exist
|
|
||||||
USER=openalpr
|
|
||||||
GROUP=openalpr
|
|
||||||
getent group $GROUP >/dev/null || addgroup $GROUP >/dev/null
|
|
||||||
getent passwd $USER >/dev/null || adduser --system --no-create-home $USER >/dev/null
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
Reference in New Issue
Block a user