mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 01:36:51 +08:00
Tweaked installer to create plates dir and use the user named "openalpr"
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
openalpr (2.0.5-0.1) experimental; urgency=low
|
||||||
|
|
||||||
|
* Non-maintainer upload
|
||||||
|
* Added licensing
|
||||||
|
|
||||||
|
-- Matthew Hill <matthill@openalpr.com> Wed, 21 Jan 2015 22:28:48 -0500
|
||||||
|
|
||||||
openalpr (2.0.0-0.2) experimental; urgency=low
|
openalpr (2.0.0-0.2) experimental; urgency=low
|
||||||
|
|
||||||
* Non-maintainer upload
|
* Non-maintainer upload
|
||||||
|
1
distros/debian/openalpr-daemon.dirs
Normal file
1
distros/debian/openalpr-daemon.dirs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var/lib/openalpr/plateimages/
|
@@ -21,6 +21,7 @@ DAEMON=/usr/bin/alprd
|
|||||||
PIDFILE=/var/run/alprd.pid
|
PIDFILE=/var/run/alprd.pid
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
DEFAULT=/etc/default/$NAME
|
DEFAULT=/etc/default/$NAME
|
||||||
|
USER=openalpr
|
||||||
|
|
||||||
# Exit if the package is not installed
|
# Exit if the package is not installed
|
||||||
[ -x "$DAEMON" ] || exit 0
|
[ -x "$DAEMON" ] || exit 0
|
||||||
|
11
distros/debian/openalpr-daemon.postinst
Normal file
11
distros/debian/openalpr-daemon.postinst
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Source debconf library.
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
|
||||||
|
chown openalpr:root /var/lib/openalpr/plateimages
|
||||||
|
|
||||||
|
|
||||||
|
db_stop
|
4
distros/debian/openalpr-daemon.preinst
Normal file
4
distros/debian/openalpr-daemon.preinst
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
adduser --system --no-create-home openalpr
|
Reference in New Issue
Block a user