mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-26 00:08:28 +00:00
Fix typo in init script modification
This commit is contained in:
parent
ec83d37a56
commit
80fd038094
@ -30,7 +30,7 @@ if [ ! -z "$1" ]; then
|
|||||||
elif [ -f /etc/rc.d/init.d/functions ]; then
|
elif [ -f /etc/rc.d/init.d/functions ]; then
|
||||||
cp redhat/arkdaemon "${INSTALL_ROOT}/etc/rc.d/init.d/arkmanager"
|
cp redhat/arkdaemon "${INSTALL_ROOT}/etc/rc.d/init.d/arkmanager"
|
||||||
chmod +x "${INSTALL_ROOT}/etc/rc.d/init.d/arkmanager"
|
chmod +x "${INSTALL_ROOT}/etc/rc.d/init.d/arkmanager"
|
||||||
sed -i "s@^DAEMON=\"/usr/bin@DAEMON=\"${EXECPREFIX}@" "${INSTALL_ROOT}/etc/rc.d/init.d/arkmanager"
|
sed -i "s@^DAEMON=\"/usr@DAEMON=\"${EXECPREFIX}@" "${INSTALL_ROOT}/etc/rc.d/init.d/arkmanager"
|
||||||
if [ -x /sbin/chkconfig -a -z "${INSTALL_ROOT}" ]; then
|
if [ -x /sbin/chkconfig -a -z "${INSTALL_ROOT}" ]; then
|
||||||
chkconfig --add arkmanager
|
chkconfig --add arkmanager
|
||||||
echo "Ark server will now start on boot, if you want to remove this feature run the following line"
|
echo "Ark server will now start on boot, if you want to remove this feature run the following line"
|
||||||
@ -39,7 +39,7 @@ if [ ! -z "$1" ]; then
|
|||||||
elif [ -f /sbin/runscript ]; then
|
elif [ -f /sbin/runscript ]; then
|
||||||
cp openrc/arkdaemon "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
cp openrc/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/bin@DAEMON=\"${EXECPREFIX}@" "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
sed -i "s@^DAEMON=\"/usr@DAEMON=\"${EXECPREFIX}@" "${INSTALL_ROOT}/etc/init.d/arkmanager"
|
||||||
if [ -x /sbin/rc-update -a -z "${INSTALL_ROOT}" ]; then
|
if [ -x /sbin/rc-update -a -z "${INSTALL_ROOT}" ]; then
|
||||||
rc-update add arkmanager default
|
rc-update add arkmanager default
|
||||||
echo "Ark server will now start on boot, if you want to remove this feature run the following line"
|
echo "Ark server will now start on boot, if you want to remove this feature run the following line"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user