aboutsummaryrefslogtreecommitdiffstats
path: root/site-updater.sh
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2019-01-30 19:12:59 -0600
committerMatt Rude <[email protected]>2019-01-30 19:12:59 -0600
commit7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082 (patch)
tree0a3f428895be874871fbdb074769daee4f9594e4 /site-updater.sh
parent16252aff8713d479a3da222a18ba6a6d351676b4 (diff)
downloadxmpp-site-lite-7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082.tar.gz
xmpp-site-lite-7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082.tar.bz2
xmpp-site-lite-7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082.zip
Update dir
Diffstat (limited to 'site-updater.sh')
-rwxr-xr-xsite-updater.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/site-updater.sh b/site-updater.sh
index 8a9e83f..3fb039b 100755
--- a/site-updater.sh
+++ b/site-updater.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-DIR="/var/src/xmpp-site/sites/lite/"
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
VERSION=`ejabberdctl status |tail -1 |awk '{ print $2 }'`
GITVERSION=`git --git-dir=/var/src/ejabberd/.git log |head -1 |awk '{print $2}'`
UPLOADDAYS=`grep -A1 mod_http_upload_quota /etc/ejabberd/ejabberd.yml |grep max_days |awk '{ print $2 }'`