From 36242b547abc335084e2fe0f5e882471b5e0e22e Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Mon, 17 May 2021 13:57:53 +0700 Subject: [PATCH] Add option to reinstall config file. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 837ee01..737c0e8 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ PREFIX="${PREFIX:-/usr/local}" mkdir -p $PREFIX/share/archbox/bin install -v -D -m 755 ./src/archbox.bash $PREFIX/bin/archbox 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/enter.bash $PREFIX/share/archbox/bin/enter install -v -D -m 755 ./src/chroot_setup.bash $PREFIX/share/archbox/chroot_setup.bash