diff options
author | Matt Rude <[email protected]> | 2019-01-30 19:12:59 -0600 |
---|---|---|
committer | Matt Rude <[email protected]> | 2019-01-30 19:12:59 -0600 |
commit | 7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082 (patch) | |
tree | 0a3f428895be874871fbdb074769daee4f9594e4 | |
parent | 16252aff8713d479a3da222a18ba6a6d351676b4 (diff) | |
download | xmpp-site-lite-7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082.tar.gz xmpp-site-lite-7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082.tar.bz2 xmpp-site-lite-7d03d5def39d9c84e2c4c7b19b2fcb6a56c85082.zip |
Update dir
-rwxr-xr-x | site-updater.sh | 2 | ||||
-rwxr-xr-x | update-site-certs.sh | 3 |
2 files changed, 3 insertions, 2 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 }'` diff --git a/update-site-certs.sh b/update-site-certs.sh index 5d24404..f18a83c 100755 --- a/update-site-certs.sh +++ b/update-site-certs.sh @@ -1,8 +1,9 @@ #!/bin/bash -cd /var/src/xmpp-site/sites/lite/ +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" CONFIG="current-config.yml" DOMAIN="$1" +cd ${DIR} #for DOMAIN in mattrude.com soderparr.com therudes.com #do ### |