Fix missing etc dir

This commit is contained in:
Syahrial Agni Prasetya 2021-05-17 14:01:32 +07:00
parent 36242b547a
commit 5bfcfcb4a6
No known key found for this signature in database
GPG Key ID: 46F88749C8C79383

View File

@ -4,6 +4,7 @@ ETC_DIR="${ETC_DIR:-/etc}"
PREFIX="${PREFIX:-/usr/local}" PREFIX="${PREFIX:-/usr/local}"
mkdir -p $PREFIX/share/archbox/bin mkdir -p $PREFIX/share/archbox/bin
mkdir -p $ETC_DIR
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/archbox.conf || ! -z $FORCE_INSTALL_CONFIG ]] && ./genconfig.sh > $ETC_DIR/archbox.conf [[ ! -e /etc/archbox.conf || ! -z $FORCE_INSTALL_CONFIG ]] && ./genconfig.sh > $ETC_DIR/archbox.conf