Do not overwrite existing config file

This commit is contained in:
lemniskett 2020-10-29 22:04:39 +07:00
parent 5ea665eb61
commit b89f5fc95c

View File

@ -1,8 +1,8 @@
#!/bin/sh
#!/bin/bash
mkdir -p /usr/local/share/archbox/bin
cp -v ./archbox.bash /usr/local/bin/archbox
cp -v ./archbox.conf /etc/archbox.conf
[[ ! -e /etc/archbox.conf ]] && cp -v ./archbox.conf /etc/archbox.conf
cp -v ./copyresolv.bash /usr/local/share/archbox/bin/copyresolv
cp -v ./archboxcommand.bash /usr/local/share/archbox/bin/archbox
cp -v ./chroot_setup.bash /usr/local/share/archbox/chroot_setup.bash