www.techtransthai.org/install.sh

12 lines
373 B
Bash
Raw Normal View History

2023-07-24 04:54:27 +00:00
podman stop ttt-org
podman rm ttt-org
sed -i "s/DATE/$(date -I)/g" index.html
sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" index.html
podman build -t ttt-org .
podman run --name ttt-org -p 8084:80 -d ttt-org
2023-08-09 20:36:10 +00:00
podman generate systemd ttt-org > ~/.config/systemd/user/ttt-org.service
systemctl --user daemon-reload
systemctl --user enable ttt-org.service