try to fix sudo

This commit is contained in:
iceBear67
2025-03-22 19:24:17 +08:00
parent c7a476a7f0
commit 71777b542a
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ apt-get update && apt-get upgrade
chmod +x /bin/bubble chmod +x /bin/bubble
apt-get install -y curl jq neovim htop fish tmux sudo git apt-get install -y curl jq neovim htop fish tmux sudo git
useradd -m -s /usr/bin/fish user useradd -m -s /usr/bin/fish user
echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers echo "user ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
sudo -u user mkdir -p /home/user/.config/fish/ sudo -u user mkdir -p /home/user/.config/fish/
EOF EOF
COPY ./init.fish /init.fish COPY ./init.fish /init.fish
+4
View File
@@ -10,6 +10,10 @@ function exit
tmux detach tmux detach
end end
function logout
exit
end
function install-docker function install-docker
if test -e /bin/docker if test -e /bin/docker
echo "Docker is already present at /bin/docker." echo "Docker is already present at /bin/docker."