summaryrefslogtreecommitdiff
path: root/localikiblogcreate
diff options
context:
space:
mode:
Diffstat (limited to 'localikiblogcreate')
-rwxr-xr-xlocalikiblogcreate5
1 files changed, 2 insertions, 3 deletions
diff --git a/localikiblogcreate b/localikiblogcreate
index ae61948..987c634 100755
--- a/localikiblogcreate
+++ b/localikiblogcreate
@@ -14,9 +14,8 @@ BLOGWORKDIR="$HOME/public_html"
BLOGPROTO="http"
BLOGHOST="user.homebase.dk"
-# The above can be overridden
-LOCALCONFIG="/etc/local/ikiblog.conf"
-. "$LOCALCONFIG" || true
+# allow overriding above
+[ ! -r /etc/local/ikiblog.conf ] || . /etc/local/ikiblog.conf
gitdir="$BLOGGITDIR"
workdir="$BLOGWORKDIR"