opnsense-ports/sysutils/puppet37/files/patch-ext__rack__config.ru
Franco Fichtner 9c32318b80 */*: sync with upstream
Taken from: FreeBSD
2015-06-23 09:29:05 +02:00

13 lines
636 B
Ruby

--- ./ext/rack/config.ru.orig 2013-12-20 16:47:22.876896492 +0000
+++ ./ext/rack/config.ru 2013-12-20 16:47:33.826895721 +0000
@@ -14,8 +14,8 @@
# Rack applications typically don't start as root. Set --confdir and --vardir
# to prevent reading configuration from ~puppet/.puppet/puppet.conf and writing
# to ~puppet/.puppet
-ARGV << "--confdir" << "/etc/puppet"
-ARGV << "--vardir" << "/var/lib/puppet"
+ARGV << "--confdir" << "%%PREFIX%%/etc/puppet"
+ARGV << "--vardir" << "/var/puppet"
# NOTE: it's unfortunate that we have to use the "CommandLine" class
# here to launch the app, but it contains some initialization logic