提交 f0adcdd2 编写于 作者: B Bastian Blank

Don't call runmirrors with changed home

Actually, setting HOME to the target user is the behavior of the Debian
sudo config anyway.
上级 106255db
......@@ -117,7 +117,7 @@ if [[ "${old_last_changed}" != "${new_last_changed}" ]]; then
dak generate-packages-sources2 -a security
dak generate-releases -a security >/dev/null
/srv/security-master.debian.org/dak/config/debian-security/make-mirror.sh >/dev/null
sudo -u archvsync -H runmirrors -a security
sudo -u archvsync runmirrors -a security
fi
cleanup
......
......@@ -37,7 +37,7 @@ cleanup
trap - EXIT
/srv/security-master.debian.org/dak/config/debian-security/make-mirror.sh >/dev/null
sudo -u archvsync -H runmirrors -a security
sudo -u archvsync runmirrors -a security
${scriptsdir}/link_morgue.sh
......
......@@ -23,7 +23,7 @@ function changelogs() {
mkdir -p ${exportpublic}/changelogs
cd ${exportpublic}/changelogs
rsync -aHW --delete --delete-after --ignore-errors ${exportdir}/changelogs/. .
sudo -H -u archvsync runmirrors -a metasdo > ~dak/runmirrors-metadata.log 2>&1 &
sudo -u archvsync runmirrors -a metasdo > ~dak/runmirrors-metadata.log 2>&1 &
}
changelogs
......@@ -108,7 +108,7 @@ function make_buildd_dir () {
# Tell the mirrors that we've updated
log "Pushing static for incoming.d.o"
sudo -H -u archvsync runmirrors -a buildd > ~dak/runmirrors-buildd.log 2>&1 &
sudo -u archvsync runmirrors -a buildd > ~dak/runmirrors-buildd.log 2>&1 &
chronic timeout -k 600 480 /usr/local/bin/static-update-component incoming.debian.org < /dev/null
wait
}
......
......@@ -582,7 +582,7 @@ function mirrorpush() {
date -u > ${webdir}/${fname}
echo "Using dak v1" >> ${webdir}/${fname}
echo "Running on host $(hostname -f)" >> ${webdir}/${fname}
sudo -H -u archvsync runmirrors -a ${pusharg} > ~dak/runmirrors-${archive}.log 2>&1 &
sudo -u archvsync runmirrors -a ${pusharg} > ~dak/runmirrors-${archive}.log 2>&1 &
fi
done
}
......@@ -594,7 +594,7 @@ function mirrorpush-backports() {
function mirrorpush-release() {
log "Pushing cdbuilder host"
sudo -H -u archvsync runmirrors -a release > ~dak/runmirrors-release.log 2>&1 &
sudo -u archvsync runmirrors -a release > ~dak/runmirrors-release.log 2>&1 &
}
function i18n2() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册