From 3ef4c26442cfe19b2e4cb31c12208d4a45fde158 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Tue, 24 May 2022 21:51:39 +0300 Subject: [PATCH] [koffe&Dockerfile/BUG] Fixed sudo bug Added sudo in the Dockerfile and removed bad sudo in koffe file --- Dockerfile | 2 +- koffe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64e1b17..c1de1ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,6 @@ COPY pi.is /usr/share/koffe/pi.is COPY install /usr/share/koffe/install RUN chmod +x /usr/bin/koffe RUN pacman -Suy --noconfirm -RUN pacman -S base archiso pacman-contrib libnewt wget git --noconfirm +RUN pacman -S sudo base archiso pacman-contrib libnewt wget git --noconfirm RUN install -d /finalimage ENTRYPOINT ["/usr/bin/koffe"] diff --git a/koffe b/koffe index a700905..a5b10a4 100755 --- a/koffe +++ b/koffe @@ -146,7 +146,7 @@ then then echo "AUR PACKAGE! BEWARE" mkdir /tmp/koffe/home - sudo usermod -d /tmp/koffe/home/ nobody + usermod -d /tmp/koffe/home/ nobody git clone https://aur.archlinux.org/$app /tmp/koffe/aurbg/$app chown -hR nobody /tmp/koffe/ cd /tmp/koffe/aurbg/$app