fix: typo and systemd check
This commit is contained in:
parent
d5e1768633
commit
620f76352f
@ -67,7 +67,7 @@ build:
|
|||||||
fake-systemd-build:
|
fake-systemd-build:
|
||||||
find $(SOURCEDIR)/main -type f -name '*.service' -exec cp -f {} $(RELEASEDIR)/{} \;
|
find $(SOURCEDIR)/main -type f -name '*.service' -exec cp -f {} $(RELEASEDIR)/{} \;
|
||||||
find $(RELEASEDIR) -type f -exec sed -i 's|:DEFINE_PREFIX:|$(DESTDIR)$(PREFIX)|g;' {} \;
|
find $(RELEASEDIR) -type f -exec sed -i 's|:DEFINE_PREFIX:|$(DESTDIR)$(PREFIX)|g;' {} \;
|
||||||
find $(RELEASEDIR) -type f -exec sed -i -r 's|ExecStart=.+KFGameSteamServer.bin.x86_64|ExecStart=/bin/bash|g;' {} \;
|
find $(RELEASEDIR) -type f -exec sed -i -r 's|ExecStart=.+KFGameSteamServer.bin.x86_64.*|ExecStart=/bin/bash|g;' {} \;
|
||||||
|
|
||||||
filesystem:
|
filesystem:
|
||||||
test -d '$(CONFDIR)' || install -m 775 -d '$(CONFDIR)'
|
test -d '$(CONFDIR)' || install -m 775 -d '$(CONFDIR)'
|
||||||
|
@ -45,7 +45,7 @@ function service_name () # $*: Instance[s]
|
|||||||
local Services=""
|
local Services=""
|
||||||
for Instance in $*
|
for Instance in $*
|
||||||
do
|
do
|
||||||
if multini -g "$InstanceConfigDir/$Instance" '' "UseOrigApp" 2> /dev/null | grep -Piqo '^True$' && test -x "$AppBinOrig"
|
if multini -g "$InstanceConfigDir/$Instance" '' "UseOrigApp" 2> /dev/null | grep -Piqo '^True$' && test -x "$AppBinOrig"; then
|
||||||
Services+=" kf2-srv${KF2POSTFIX}-orig@$Instance.service"
|
Services+=" kf2-srv${KF2POSTFIX}-orig@$Instance.service"
|
||||||
else
|
else
|
||||||
Services+=" kf2-srv${KF2POSTFIX}@$Instance.service"
|
Services+=" kf2-srv${KF2POSTFIX}@$Instance.service"
|
||||||
|
Loading…
Reference in New Issue
Block a user