make WORKDIR self discoverable
This commit is contained in:
parent
76fbeada3d
commit
7d715e3329
|
@ -23,7 +23,6 @@ An example site is available [here](https://ops.lowfive.nl/)
|
||||||
To install uptimeatomic:
|
To install uptimeatomic:
|
||||||
|
|
||||||
* Clone the repository and go to the created directory
|
* Clone the repository and go to the created directory
|
||||||
* Edit `uptimeatomic` base variables to your liking
|
|
||||||
* Edit `uptimeatomic.conf` variables to your liking
|
* Edit `uptimeatomic.conf` variables to your liking
|
||||||
* Edit the checks file `checks.csv`
|
* Edit the checks file `checks.csv`
|
||||||
* To add incidents or maintenance, edit `incidents.txt`
|
* To add incidents or maintenance, edit `incidents.txt`
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
|
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
|
||||||
CONFIGFILE="uptimeatomic.conf"
|
CONFIGFILE="uptimeatomic.conf"
|
||||||
WORKDIR="/home/mischa/uptimeatomic"
|
WORKDIR=$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P)
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: ${0##*/} [-c checksfile] [-i incidentsfile] [-p pastincidentsfile] [-o htmlfile]" 1>&2
|
echo "usage: ${0##*/} [-c checksfile] [-i incidentsfile] [-p pastincidentsfile] [-o htmlfile]" 1>&2
|
||||||
|
|
Loading…
Reference in New Issue