bootstrap-rocky-8/get-busy-box-static.sh
Eliezer Croitoru 14f39a4c92 Periodic update
2024-09-19 06:09:52 +03:00

24 lines
457 B
Bash
Executable File

#!/usr/bin/env bash
set -x
set -e
docker run -d --name busybox_extractor -v ${pwd}:/installer debian:12 sleep 3600
docker exec -it busybox_extractor apt update
docker exec -it busybox_extractor apt upgrade -y
docker exec -it busybox_extractor apt install -y busybox-static
docker exec -it busybox_extractor cp -vf /usr/bin/busybox /installer/
docker stop busybox_extractor
docker rm busybox_extractor
cp -vf busybox /usr/bin/busybox
set +e
set +x