Update archbox
This commit is contained in:
parent
d276b157d0
commit
ee72ae5a8c
5
archbox
5
archbox
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
CHROOT="/var/archlinux/root.x86_64"
|
CHROOT="/var/archlinux/root.x86_64"
|
||||||
COMMAND=$(echo $@ | tr ' ' '\ ')
|
COMMAND=$(echo $@ | tr ' ' '\ ')
|
||||||
|
USER=$(whoami)
|
||||||
|
|
||||||
doas cp /etc/resolv.conf $CHROOT/etc/resolv.conf
|
doas cp /etc/resolv.conf $CHROOT/etc/resolv.conf
|
||||||
[[ -z $@ ]] && doas chroot $CHROOT /bin/su lemniskett \
|
[[ -z $@ ]] && doas chroot $CHROOT /bin/su $USER \
|
||||||
|| doas chroot $CHROOT su -c "$COMMAND" lemniskett
|
|| doas chroot $CHROOT su -c "$COMMAND" $USER
|
||||||
|
Loading…
Reference in New Issue
Block a user