Correction du script zabbix pour que les mots de passe soient personnel

This commit is contained in:
root 2020-04-28 01:45:17 +02:00
parent ea7b3c2203
commit 4e0f1593ae

View File

@ -1,8 +1,8 @@
#!/bin/bash
USER=$1
PASS=$2
body=$3
USER=`echo ${1} | awk '{ print $1 }'`
PASS=`echo ${1} | awk '{ print $2 }'`
body=${2}
cat <<EOF | freesms -u ${USER} -p ${PASS} -
${body}