aboutsummaryrefslogtreecommitdiff
path: root/bin/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-06 15:46:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-06-06 15:46:59 -0300
commit6861a4ace35cd0a9d89cfb46a295f37491441df1 (patch)
tree60d069344b08b8580e722c9e0cc9d5fe97aba9f2 /bin/provision
parent92a57440020be9cb84320b45dbbb28a86fad464d (diff)
downloadbookup-6861a4ace35cd0a9d89cfb46a295f37491441df1.tar.gz
bookup-6861a4ace35cd0a9d89cfb46a295f37491441df1.tar.bz2
Feat: support for an .env file
Diffstat (limited to 'bin/provision')
-rwxr-xr-xbin/provision6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/provision b/bin/provision
index f438a5e..f34bbbf 100755
--- a/bin/provision
+++ b/bin/provision
@@ -5,6 +5,12 @@
# Parameters
DIRNAME="`dirname $0`"
+BASEDIR="$DIRNAME/.."
+
+# Load optional customizations
+[ -f "$BASEDIR/.env" ] && source $BASEDIR/.env
+
+# Bookdown packaging approach
BOOKDOWN_PACKAGING="${BOOKDOWN_PACKAGING:-DEB}"
# Dependencies