consts.sh 590 Bytes
Newer Older
1
2
#!/usr/bin/env bash

3
4
5
6
7
8
9
10
11
# base install location, src probably won't change unless you're doing something weird
readonly EODN2REALEARTH=/home/eodn/eodn2realearth
readonly SRC=${EODN2REALEARTH}/src

# this stuff you might want to change, especially if you have multiple disks
readonly LOGS=${EODN2REALEARTH}/logs
readonly INCOMING=${EODN2REALEARTH}/incoming
readonly PROCESSING=${EODN2REALEARTH}/processing
readonly QUARANTINE=${EODN2REALEARTH}/quarantine
12
13
14
15
16
17

# general logging function for everything to use:
readonly TIMESTAMP=$(date +"[%Y-%m-%d %H:%M:%S]:")
log() {
  echo "${TIMESTAMP} ${@}"
}