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