2024-09-19 06:09:52 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2024-09-19 06:30:48 +03:00
|
|
|
docker run -d --name busybox_extractor -v $(pwd):/installer debian:12 sleep 3600
|
2024-09-19 06:09:52 +03:00
|
|
|
|
|
|
|
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
|