5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 17:31:42 +00:00
panel/entrypoint.sh

11 lines
294 B
Bash
Raw Normal View History

2019-04-08 18:31:29 +00:00
#!/bin/sh
set -e
case $1 in
2020-09-27 17:04:11 +00:00
sutty)
su app -c "cd /srv/http && foreman start migrate"
daemonize -c /srv/http -u app /usr/bin/foreman start sutty
;;
2020-09-18 23:51:52 +00:00
prometheus) daemonize -c /srv/http -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u app /usr/bin/foreman start prometheus ;;
2019-04-08 18:31:29 +00:00
esac