Some fixes

This commit is contained in:
lemniskett 2020-10-27 14:22:51 +07:00
parent 6371d1b127
commit ce601530e3
3 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
source /etc/archbox.conf source /etc/archbox.conf
echo executing $@ COMMAND=$(echo $@ | tr ' ' '\ ')
chroot $CHROOT /bin/su -c $@ $USER chroot $CHROOT /bin/su -c "$COMMAND" $USER

View File

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
source /etc/archbox.conf source /etc/archbox.conf
COMMAND=$(echo $@ | tr ' ' '\ ') chroot $CHROOT /bin/su $USER
chroot $CHROOT /bin/su -c "$COMMAND" $USER

View File

@ -4,4 +4,4 @@ cp -v ./archbox.bash /usr/local/bin/archbox
cp -v ./archbox.conf /etc/archbox.conf cp -v ./archbox.conf /etc/archbox.conf
cp -v ./archboxenter.bash /usr/local/share/archbox/bin/archboxenter cp -v ./archboxenter.bash /usr/local/share/archbox/bin/archboxenter
cp -v ./copyresolv.bash /usr/local/share/archbox/bin/copyresolv cp -v ./copyresolv.bash /usr/local/share/archbox/bin/copyresolv
cp -v ./archboxenter.bash /usr/local/share/archbox/bin/archboxcommand cp -v ./archboxcommand.bash /usr/local/share/archbox/bin/archboxcommand