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
1 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
#!/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}
EOF