noninteractive

This commit is contained in:
crystal 2023-11-25 18:56:25 -07:00
parent d86fd690e3
commit c93919c98f
No known key found for this signature in database
GPG key ID: 1122054731F7CC43

View file

@ -116,11 +116,12 @@ case "$1" in
exit $?
;;
"install-repo-test")
apt update
export DEBIAN_FRONTEND=noninteractive
apt update -qq
apt install -y ./"$2"
apt update
apt update -qq
apt upgrade -y
apt update
apt update -qq
apt install "$3"
sudo -u forgejo USER=forgejo \
HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \
@ -138,15 +139,17 @@ case "$1" in
fi
;;
"force-clean-forgejo")
export DEBIAN_FRONTEND=noninteractive
apt install -y psmisc
killall forgejo
exit $?
;;
"forgejo-test-deps")
echo "deb http://deb.debian.org/debian/ bookworm-backports main contrib" > /etc/apt/sources.list.d/backports.list
apt update
apt install --no-install-recommends -y git-lfs
apt install -y -t bookworm-backports golang-1.20
export DEBIAN_FRONTEND=noninteractive
apt update -qq
apt install -qq --no-install-recommends -y git-lfs
apt install -qq -y -t bookworm-backports golang-1.20
ln -sf /usr/lib/go-1.20/bin/go /usr/local/bin/go
adduser --quiet --comment forgejo --disabled-password forgejo
chown -R forgejo:forgejo .