mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
revive Ubuntu 24.04
This commit is contained in:
8
setup
8
setup
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user