add support for new spaceapi
This commit is contained in:
parent
75e53a3e96
commit
cc4fdcb231
4 changed files with 11 additions and 2 deletions
10
shared
10
shared
|
@ -8,13 +8,19 @@ if [ ! -f "${basedir}/${config}" ]; then
|
|||
fi
|
||||
|
||||
# get password config value in a safe way
|
||||
password="$(grep password ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')"
|
||||
password="$(grep '^password' ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')"
|
||||
if [ -z "${password}" ]; then
|
||||
echo "WARNING: password in ${config} is missing!" >&2
|
||||
fi
|
||||
|
||||
# get spaceapi-password config value in a safe way
|
||||
spaceapi_password="$(grep '^spaceapi_password' ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')"
|
||||
if [ -z "${spaceapi_password}" ]; then
|
||||
echo "WARNING: spaceapi_password in ${config} is missing!" >&2
|
||||
fi
|
||||
|
||||
# get tresor config value in a safe way
|
||||
tresor="$(grep tresor ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')"
|
||||
tresor="$(grep '^tresor' ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')"
|
||||
if [ -z "${tresor}" ]; then
|
||||
echo "WARNING: tresor in ${config} is missing!" >&2
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue