~duncan-bayne/halp

a8a6694e50750eaae61abc2bd8131523d6f2efdf — Duncan Bayne 6 months ago f89999e
Modify install script to symlink from Git clone
1 files changed, 9 insertions(+), 6 deletions(-)

M freebsd/install.sh
M freebsd/install.sh => freebsd/install.sh +9 -6
@@ 4,11 4,14 @@ set -euxo pipefail

shellcheck "$0"

mkdir /usr/local/etc/halp
mkdir /usr/local/share/halp
mkdir /var/log/halp
cp -R ../halp.pl ../lib ../www /usr/local/share/halp
cp ./halp-config.pl /usr/local/etc/halp/halp-config.pl
cp ./halp /etc/rc.d/halp
mkdir -p /usr/local/etc/halp
mkdir -p /usr/local/share/halp
mkdir -p /var/log/halp

git clone https://git.sr.ht/~duncan-bayne/halp /usr/local/share/halp

ln -s /usr/local/share/halp/freebsd/halp-config.pl /usr/local/etc/halp/halp-config.pl
ln -s /usr/local/share/halp/freebsd/halp /etc/rc.d/halp

sysrc -f /etc/rc.conf halp_enable="YES"
service halp start