setup-forgejo/forgejo-dependencies.sh
Earl Warren 9fcc5f5d46
All checks were successful
/ integration (map[image:codeberg.org/forgejo/forgejo version:1.20]) (push) Successful in 2m31s
/ integration (map[image:codeberg.org/forgejo/forgejo version:1.21]) (push) Successful in 2m42s
/ binary (push) Successful in 2m29s
/ integration-action (push) Successful in 8m34s
apt-get update before installing
2023-12-29 16:46:31 +01:00

31 lines
504 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: MIT
set -x
source $(dirname $0)/lxc-helpers-lib.sh
: ${LXC_IP_PREFIX:=10.0.8}
function install_docker() {
if ! systemctl is-active --quiet docker; then
lxc_install_docker_inside
fi
}
function install_other() {
local packages="sudo git"
if ! which $packages ; then
apt-get update -qq
apt-get install -y -qq $packages
fi
}
function setup() {
install_other
install_docker
lxc_install_lxc_inside $LXC_IP_PREFIX
}
"${@:-setup}"