Add option to reinstall config file.

This commit is contained in:
Syahrial Agni Prasetya 2021-05-17 13:57:53 +07:00
parent b435a348bf
commit 36242b547a
No known key found for this signature in database
GPG Key ID: 46F88749C8C79383

View File

@ -6,7 +6,7 @@ PREFIX="${PREFIX:-/usr/local}"
mkdir -p $PREFIX/share/archbox/bin mkdir -p $PREFIX/share/archbox/bin
install -v -D -m 755 ./src/archbox.bash $PREFIX/bin/archbox install -v -D -m 755 ./src/archbox.bash $PREFIX/bin/archbox
install -v -D -m 755 ./src/archbox-desktop.bash $PREFIX/bin/archbox-desktop install -v -D -m 755 ./src/archbox-desktop.bash $PREFIX/bin/archbox-desktop
[[ ! -e $ETC_DIR/archbox.conf ]] && ./genconfig.sh > $ETC_DIR/archbox.conf [[ ! -e /etc/archbox.conf || ! -z $FORCE_INSTALL_CONFIG ]] && ./genconfig.sh > $ETC_DIR/archbox.conf
install -v -D -m 755 ./src/exec.bash $PREFIX/share/archbox/bin/exec install -v -D -m 755 ./src/exec.bash $PREFIX/share/archbox/bin/exec
install -v -D -m 755 ./src/enter.bash $PREFIX/share/archbox/bin/enter install -v -D -m 755 ./src/enter.bash $PREFIX/share/archbox/bin/enter
install -v -D -m 755 ./src/chroot_setup.bash $PREFIX/share/archbox/chroot_setup.bash install -v -D -m 755 ./src/chroot_setup.bash $PREFIX/share/archbox/chroot_setup.bash