Renvoi de la sortie d'erreur de dpkg-scanpackages vers la sortie

standard pour ne pas générer un mail à chaque exécution via cron
This commit is contained in:
root 2020-05-11 01:50:17 +02:00
parent 1e95327d46
commit 7c8e7b2bd5

View File

@ -65,7 +65,7 @@ cat > ${TEMPBASH} << EOF
#!/bin/sh #!/bin/sh
dpkg-scanpackages "${LOCALREPODIR}/repo" | sed 's@^Filename:.*${LOCALREPODIR}/\(.*\)@Filename: \1@g' > "${LOCALREPODIR}/Packages" dpkg-scanpackages "${LOCALREPODIR}/repo" | sed 's@^Filename:.*${LOCALREPODIR}/\(.*\)@Filename: \1@g' > "${LOCALREPODIR}/Packages"
EOF EOF
sh ${TEMPBASH} sh ${TEMPBASH} 2>&1
rm ${TEMPBASH} rm ${TEMPBASH}
rm -r "${TMPDIR}" rm -r "${TMPDIR}"