ports/sysutils/puppetserver7/files/patch-ext__cli__foreground
Romain Tartière 2944f974d5 Copy sysutils/puppetserver6 to sysutils/puppetserver7
The pre-commit hook does not allow me to copy and update the port at the same
time.

With hat:	puppet
2020-12-04 20:42:36 +00:00

19 lines
745 B
Text

--- ext/cli/foreground.orig 2019-09-17 14:05:56 UTC
+++ ext/cli/foreground
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-restartfile="/opt/puppetlabs/server/data/puppetserver/restartcounter"
+restartfile="/var/puppet/server/data/puppetserver/restartcounter"
cli_defaults=${INSTALL_DIR}/cli/cli-defaults.sh
if [ ! -e "${INSTALL_DIR}/ezbake-functions.sh" ]; then
@@ -30,7 +30,7 @@ fi
COMMAND="${JAVA_BIN} ${JAVA_ARGS} ${LOG_APPENDER} \
-cp "$CLASSPATH" \
clojure.main -m puppetlabs.trapperkeeper.main \
- --config ${CONFIG} --bootstrap-config ${BOOTSTRAP_CONFIG} \
+ --config ${CONFIG} --bootstrap-config %%ETCDIR%%/services.d \
--restart-file "${restartfile}" \
${TK_ARGS} \
${@}"