mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-26 08:18:27 +00:00
Modify DAEMON variable according to EXECPREFIX
This commit is contained in:
parent
7ce3118322
commit
607a3096be
@ -11,6 +11,7 @@ if [ ! -z "$1" ]; then
|
|||||||
if [ -f /lib/lsb/init-functions ]; then
|
if [ -f /lib/lsb/init-functions ]; then
|
||||||
cp lsb/arkdaemon "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
cp lsb/arkdaemon "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
||||||
chmod +x "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
chmod +x "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
||||||
|
sed -i "s|^DAEMON=\"/usr|DAEMON=\"${EXECPREFIX}|" "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
||||||
# add to startup if the system use sysinit
|
# add to startup if the system use sysinit
|
||||||
if [ -x /usr/sbin/update-rc.d -a -z "${INSTALL_ROOT}" ]; then
|
if [ -x /usr/sbin/update-rc.d -a -z "${INSTALL_ROOT}" ]; then
|
||||||
update-rc.d arkmanager defaults
|
update-rc.d arkmanager defaults
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user