script tweak
This commit is contained in:
parent
6f0bf2b66a
commit
5723df4790
@ -12,3 +12,11 @@ SMTPHOST="mta.thecompany.com"
|
||||
SMTPUSER="smtp user"
|
||||
SMTPPASS="smpt host"
|
||||
MAILXBIN="/usr/bin/s-nail"
|
||||
|
||||
declare -a MANDATORYHEADERS
|
||||
MANDATORYHEADERS=( 'Accept: application/json, text/plain, */*' 'Content-Type: application/json;charset=UTF-8' )
|
||||
|
||||
declare -a SIGNINHEADERS
|
||||
SIGNINHEADERS=( 'Origin: https://thecompany.woffu.com' 'Host: thecompany.woffu.com:443' 'Expect:' )
|
||||
|
||||
|
||||
|
@ -40,11 +40,13 @@ RESET="\033[0;00m"
|
||||
QUIETOUTPUT=false
|
||||
NOW="$(date +%Y%m%d%H%M%S)"
|
||||
|
||||
OUTPUTFILE="$(dirname "$(readlink -f "$0")")/logs/${NOW}_outputfile_$(basename "$0" .sh).log"
|
||||
CONFIGFILE="$(dirname "$(readlink -f "$0")")/$(basename "$(readlink -f "$0")" .sh).config"
|
||||
SCRIPT_PATH="$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
SCRIPTLOG="$(dirname "$(readlink -f "$0")")/logs/${NOW}_scriptlog_$(basename "$0" .sh).log"
|
||||
SCRIPTLOGERR="$(dirname "$(readlink -f "$0")")/logs/${NOW}_scriptlog_$(basename "$0" .sh).err"
|
||||
OUTPUTFILE="${SCRIPT_PATH}/logs/${NOW}_outputfile_$(basename "$0" .sh).log"
|
||||
CONFIGFILE="${SCRIPT_PATH}/$(basename "$(readlink -f "$0")" .sh).config"
|
||||
|
||||
SCRIPTLOG="${SCRIPT_PATH}/logs/${NOW}_scriptlog_$(basename "$0" .sh).log"
|
||||
SCRIPTLOGERR="${SCRIPT_PATH}/logs/${NOW}_scriptlog_$(basename "$0" .sh).err"
|
||||
|
||||
AUXFILE=$(mktemp)
|
||||
TMPFILE=$(mktemp)
|
||||
@ -53,14 +55,6 @@ TMPFILE=$(mktemp)
|
||||
#MANDATORYHEADERS="${MANDATORYHEADERS} -H \"Content-Type: application/json;charset=UTF-8\""
|
||||
## TEDDYBEAR added after sourcing config file
|
||||
|
||||
|
||||
declare -a MANDATORYHEADERS
|
||||
MANDATORYHEADERS=( 'Accept: application/json, text/plain, */*' 'Content-Type: application/json;charset=UTF-8' )
|
||||
|
||||
declare -a SIGNINHEADERS
|
||||
SIGNINHEADERS=( 'Origin: https://voxelgroup.woffu.com' 'Host: voxelgroup.woffu.com:443' 'Expect:' )
|
||||
|
||||
|
||||
##############################################
|
||||
#
|
||||
#/CONFIG
|
||||
|
Loading…
Reference in New Issue
Block a user