diff --git a/freebsd/install.sh b/freebsd/install.sh index c1e2250d9..cfb851b9c 100644 --- a/freebsd/install.sh +++ b/freebsd/install.sh @@ -5,7 +5,7 @@ pkg install -y git nano node npm mongodb44-4.4.1 sysrc mongod_enable=YES service mongod start -cd / +cd /usr/local/ git clone https://github.com/naturalcrit/homebrewery.git cd homebrewery diff --git a/freebsd/rc.d/homebrewery b/freebsd/rc.d/homebrewery index e318f23f8..bac844c2c 100644 --- a/freebsd/rc.d/homebrewery +++ b/freebsd/rc.d/homebrewery @@ -37,8 +37,8 @@ pidfile="/var/run/${program_name}.pid" # File that allows the system to keep export HOME=$( getent passwd "homebrewery_runAs" | cut -d: -f6 ) # Gets the home directory of the runAs user # Command Setup -exec_cmd="/homebrewery/server.js" # Path to the HomeBrewery server.js, /usr/local/bin/ when installed globally -output_file="/var/log/${program_name}.log" # Path to HomeBrewery output file +exec_cmd="/usr/local/homebrewery/server.js" # Path to the HomeBrewery server.js +output_file="/var/log/${program_name}.log" # Path to HomeBrewery output file # Command command="/usr/sbin/daemon"