revive Ubuntu 24.04

This commit is contained in:
Ciro Santilli
2024-09-24 20:23:27 +01:00
parent 7d5bc0c898
commit 9c62faf2a0
3 changed files with 26 additions and 5 deletions

8
setup
View File

@@ -6,14 +6,15 @@ if [ $# -eq 1 ]; then
else
y=
fi
if [ -f /.dockerenv ]; then
indocker="$(set +e; grep -q docker /proc/1/cgroup; echo $?)"
if [ "$indocker" -eq 0 ]; then
sudo=
export DEBIAN_FRONTEND=noninteractive
else
sudo=sudo
fi
$sudo apt-get update
if [ -f /.dockerenv ]; then
if [ "$indocker" -eq 0 ]; then
$sudo apt update
apt install -y software-properties-common
add-apt-repository -y ppa:git-core/ppa
$sudo apt update
@@ -25,6 +26,5 @@ $sudo apt-get install $y \
$git \
python3 \
python3-pip \
python3-distutils \
;
python3 -m pip install -r requirements.txt