Skip to content
Snippets Groups Projects
Commit 081cd65e authored by Niels Huylebroeck's avatar Niels Huylebroeck
Browse files

[IMP] Debian init script now has variable for config file location

bzr revid: niels@bubbles-it.be-20110308105152-w9uodtf166u1827x
parent 95803878
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/openerp-server
NAME=openerp-server
DESC=openerp-server
CONFIG=/etc/openerp-server.conf
USER=openerp
test -x ${DAEMON} || exit 0
......@@ -29,7 +29,7 @@ case "${1}" in
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- --config=/etc/openerp-server.conf \
--exec ${DAEMON} -- --config=$CONFIG \
--logfile=/var/log/openerp-server.log
echo "${NAME}."
......@@ -54,7 +54,7 @@ case "${1}" in
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \
--chuid ${USER} --background --make-pidfile \
--exec ${DAEMON} -- --config=/etc/openerp-server.conf \
--exec ${DAEMON} -- --config=$CONFIG \
--logfile=/var/log/openerp-server.log
echo "${NAME}."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment