add secrets for username and password

This commit is contained in:
Hanjo Meinhardt 2018-01-27 13:53:50 +01:00
parent a0c9e971ee
commit b8e8f6c21b

View File

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
[ -n PLUGIN_USERNAME ] && PLUGIN_USERNAME="${SENDXMPP_USERNAME}"
[ -n PLUGIN_PASSWORD ] && PLUGIN_PASSWORD="${SENDXMPP_PASSWORD}"
: ${PLUGIN_USERNAME?"missing username"} : ${PLUGIN_USERNAME?"missing username"}
: ${PLUGIN_JSERVER?"missing jserver"} : ${PLUGIN_JSERVER?"missing jserver"}
: ${PLUGIN_PASSWORD?"missing password"} : ${PLUGIN_PASSWORD?"missing password"}