Skip to content

Commit 62ec6ee

Browse files
committed
fix
1 parent b9b87ba commit 62ec6ee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

debian.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
echo -e "nameserver 8.8.8.8\nnameserver 2620:0:ccc::2" | tee "/etc/resolv.conf"
3232
echo -e "nameserver 1.1.1.1\nnameserver 2606:4700:4700::1111" | tee -a "/etc/resolv.conf"
3333
#Requirements
34+
DEBIAN_FRONTEND="noninteractive"
3435
BASE_PKGS=(bash binutils coreutils curl file findutils gawk gocryptfs grep gzip iproute2 iptables iputils-ping jq kmod libnotify-bin lsof liblz4-1 nftables openresolv patchelf procps socat tar util-linux which x11-xserver-utils xz-utils zstd)
3536
DEBIAN_FRONTEND="noninteractive" apt clean -y
3637
DEBIAN_FRONTEND="noninteractive" apt update -y
3738
#DEBIAN_FRONTEND="noninteractive" apt install -f "${BASE_PKGS[@]}" -y --no-install-recommends --ignore-missing
3839
for pkg in "${BASE_PKGS[@]}"; do DEBIAN_FRONTEND="noninteractive" apt install -f "${pkg}" -y --no-install-recommends --ignore-missing 2>/dev/null; done
3940
#Cleanup
40-
curl -qfsSL "https://raw.githubusercontent.com/VHSgunzo/runimage-fake-sudo-pkexec/refs/heads/main/usr/bin/sudo" -o "/usr/bin/sudo" && chmod -v "a+x" "/usr/bin/sudo"
41+
curl -kqfsSL "https://raw.githubusercontent.com/VHSgunzo/runimage-fake-sudo-pkexec/refs/heads/main/usr/bin/sudo" -o "./sudo"
42+
mv -fv "./sudo" "/usr/bin/sudo" && chmod -v "a+x" "/usr/bin/sudo"
4143
apt purge locales perl -y ; apt autoremove -y ; apt autoclean -y
4244
apt list --installed
4345
apt clean -y

ubuntu.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
echo -e "nameserver 8.8.8.8\nnameserver 2620:0:ccc::2" | tee "/etc/resolv.conf"
3232
echo -e "nameserver 1.1.1.1\nnameserver 2606:4700:4700::1111" | tee -a "/etc/resolv.conf"
3333
#Requirements
34+
DEBIAN_FRONTEND="noninteractive"
3435
BASE_PKGS=(bash binutils coreutils curl file findutils gawk gocryptfs grep gzip iproute2 iptables iputils-ping jq kmod libnotify-bin lsof liblz4-1 nftables patchelf procps socat systemd-resolved tar util-linux which x11-xserver-utils xz-utils zstd)
3536
DEBIAN_FRONTEND="noninteractive" apt clean -y
3637
DEBIAN_FRONTEND="noninteractive" apt update -y
3738
#DEBIAN_FRONTEND="noninteractive" apt install -f "${BASE_PKGS[@]}" -y --no-install-recommends --ignore-missing
3839
for pkg in "${BASE_PKGS[@]}"; do DEBIAN_FRONTEND="noninteractive" apt install -f "${pkg}" -y --no-install-recommends --ignore-missing 2>/dev/null; done
3940
#Cleanup
40-
curl -qfsSL "https://raw.githubusercontent.com/VHSgunzo/runimage-fake-sudo-pkexec/refs/heads/main/usr/bin/sudo" -o "/usr/bin/sudo" && chmod -v "a+x" "/usr/bin/sudo"
41+
curl -kqfsSL "https://raw.githubusercontent.com/VHSgunzo/runimage-fake-sudo-pkexec/refs/heads/main/usr/bin/sudo" -o "./sudo"
42+
mv -fv "./sudo" "/usr/bin/sudo" && chmod -v "a+x" "/usr/bin/sudo"
4143
apt purge locales perl -y ; apt autoremove -y ; apt autoclean -y
4244
apt list --installed
4345
apt clean -y

0 commit comments

Comments
 (0)