make WORKDIR self discoverable

This commit is contained in:
mischa 2023-06-03 18:07:04 +00:00
parent 76fbeada3d
commit 7d715e3329
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ An example site is available [here](https://ops.lowfive.nl/)
To install uptimeatomic:
* Clone the repository and go to the created directory
* Edit `uptimeatomic` base variables to your liking
* Edit `uptimeatomic.conf` variables to your liking
* Edit the checks file `checks.csv`
* To add incidents or maintenance, edit `incidents.txt`

View File

@ -5,7 +5,7 @@
#
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
CONFIGFILE="uptimeatomic.conf"
WORKDIR="/home/mischa/uptimeatomic"
WORKDIR=$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P)
usage() {
echo "usage: ${0##*/} [-c checksfile] [-i incidentsfile] [-p pastincidentsfile] [-o htmlfile]" 1>&2