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:
parent
1e95327d46
commit
7c8e7b2bd5
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user