0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 09:42:40 +00:00
Files
homebrewery/freebsd/install.sh
G.Ambatte 407232c708 Fix for MongoDB package update breaking install script
Change to enable use of rcvars for NODE_ENV and PORT
2021-01-17 17:19:24 +13:00

20 lines
381 B
Bash

#!/bin/sh
pkg install -y git nano node npm mongodb44
sysrc mongod_enable=YES
service mongod start
cd /usr/local/
git clone https://github.com/naturalcrit/homebrewery.git
cd homebrewery
npm install
npm audit fix
npm run postinstall
cp freebsd/rc.d/homebrewery /usr/local/etc/rc.d/
chmod +x /usr/local/etc/rc.d/homebrewery
sysrc homebrewery_enable=YES
service homebrewery start