more ci optimizations

This commit is contained in:
crystal 2023-09-09 13:55:59 -06:00
parent c9399d7358
commit c6ae8be83b
No known key found for this signature in database
GPG key ID: 1122054731F7CC43

View file

@ -110,7 +110,7 @@ case "$1" in
[ -z "$FORGEJO_USER" ] && FORGEJO_USER=forgejo [ -z "$FORGEJO_USER" ] && FORGEJO_USER=forgejo
sudo -u $FORGEJO_USER USER=$FORGEJO_USER \ sudo -u $FORGEJO_USER USER=$FORGEJO_USER \
HOME=$FORGEJO_HOME GITEA_WORK_DIR=$FORGEJO_HOME \ HOME=$FORGEJO_HOME GITEA_WORK_DIR=$FORGEJO_HOME \
forgejo web --config /etc/forgejo/app.ini & forgejo web -q --config /etc/forgejo/app.ini &
sleep 10 sleep 10
curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo" curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
exit $? exit $?
@ -124,9 +124,9 @@ case "$1" in
apt install "$3" apt install "$3"
sudo -u forgejo USER=forgejo \ sudo -u forgejo USER=forgejo \
HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \
forgejo web --config /etc/fogejo/app.ini & forgejo web -q --config /etc/fogejo/app.ini &
sleep 10 sleep 10
curl http://localhost:3000/ curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
exit $? exit $?
;; ;;
esac esac