summaryrefslogtreecommitdiff
path: root/sysutils/puppetserver/files/patch-ext__bin__puppetserver
blob: 9c9f183c9d6978dc93918b0426ad016207b453b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ext/bin/puppetserver.orig	2017-04-21 14:33:47.561092351 -0700
+++ ext/bin/puppetserver	2017-04-21 14:36:27.512159166 -0700
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/local/bin/bash
 
 #set default privileges to -rw-r-----
 umask 027
@@ -14,6 +14,12 @@
     USER="_puppet"
     INSTALL_DIR="/opt/puppetlabs/server/apps/puppetserver"
     CONFIG="/etc/puppetlabs/puppetserver/conf.d"
+elif [ `uname` == "FreeBSD" ] ; then
+    JAVA_BIN="%%JAVA%%"
+    JAVA_ARGS="-Xms2g -Xmx2g -XX:MaxPermSize=256m"
+    USER="puppet"
+    INSTALL_DIR="%%DATADIR%%"
+    CONFIG="%%ETCDIR%%/conf.d"
 else
     echo "You seem to be missing some important configuration files; could not find /etc/default/puppetserver or /etc/sysconfig/puppetserver" >&2
     exit 1