1
0

correction bug entête message

This commit is contained in:
Daniel Tartavel 2021-10-01 12:13:53 +02:00
parent a39315e9db
commit d8223ad28f

View File

@ -14,7 +14,7 @@ if [ "$1" = "mensuelle" ]; then
REP=$1 REP=$1
fi fi
MSG='Content-Type: text/plain ;charset="utf-8"\nContent-Transfer-Econding: 8bit\n\n' MSG='Content-Type: text/plain ;charset="utf-8"\n\rContent-Transfer-Econding: 8bit\n\r\n'
DDIR="dtux.ddns.net::save/serveur_lalis/$REP" DDIR="dtux.ddns.net::save/serveur_lalis/$REP"
SDIRX=("/mnt/lalis" "/var/www" "/etc" "/var/lib/mysql" "/var/lib/tftpboot" "/usr/local/bin" "/mnt/nextcloud_data") SDIRX=("/mnt/lalis" "/var/www" "/etc" "/var/lib/mysql" "/var/lib/tftpboot" "/usr/local/bin" "/mnt/nextcloud_data")
#SDIRX=("/var/www" "/etc" "/var/lib/mysql" "/var/lib/tftpboot" "/usr/local/bin") #SDIRX=("/var/www" "/etc" "/var/lib/mysql" "/var/lib/tftpboot" "/usr/local/bin")
@ -54,9 +54,9 @@ for SDIR in ${SDIRX[*]}; do
fi fi
done done
if [ $FLAG -eq 1 ]; then if [ $FLAG -eq 1 ]; then
OBJ="Subject: [LALISNO] Problème lors de la sauvegarde\n" OBJ="Subject: [LALISNO] Problème lors de la sauvegarde\n\r"
else else
OBJ="Subject: [LALISOK] Sauvegarde réussie\n" OBJ="Subject: [LALISOK] Sauvegarde réussie\n\r"
fi fi
printf "$OBJ\n$MSG" | sendmail -f contact@lalis.fr contact@lalis.fr printf "$OBJ$MSG" | sendmail -f contact@lalis.fr contact@lalis.fr