attempt debian postinst script

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-08 11:17:37 -05:00
parent b283823ffe
commit 2b1eed1409
3 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,10 @@ log:
@#systemctl status gowebd.service
@journalctl -f -xeu gowebd.service
enable:
su -c "systemctl enable gowebd.service"
start:
su -c "systemctl start gowebd.service"

4
build
View File

@ -8,3 +8,7 @@ cp gowebd.service files/lib/systemd/system/
mkdir -p files/etc/gowebd/
cp Caddyfile.go.wit.com files/etc/gowebd/
cp resources/repomap files/etc/gowebd/
# share dir
mkdir -p files/usr/share/gowebd/
cp resources/repomap files/usr/share/gowebd/go.wit.com

5
postinst Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -e
cd /etc/gowebd/
ln -s /usr/share/gowebd/go.wit.com .