]> err.no Git - dak/commitdiff
config/debian/cron.monthly: debianqueued now runs as dak-unpriv
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 19 Jan 2013 15:13:59 +0000 (16:13 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 19 Jan 2013 15:44:46 +0000 (16:44 +0100)
config/debian/cron.monthly

index 08c8fe03744abb9d9ac890c0823111c227b45171..d525534effc06ac898fec804c1de239e98d006a7 100755 (executable)
@@ -35,10 +35,10 @@ chown dak:ftpteam $DATE
 
 DATE=$(date -d yesterday +%Y-%m)
 cd /srv/upload.debian.org/queued
-/srv/upload.debian.org/queued/debianqueued -k || true
-mv log log.${DATE}
-touch log
+sudo -u dak-unpriv /srv/upload.debian.org/queued/debianqueued -k || true
+mv run/log log.${DATE}
+sudo -u dak-unpriv touch run/log
 xz -9 log.${DATE}
-/srv/upload.debian.org/queued/debianqueued 2>/dev/null
+sudo -u dak-unpriv /srv/upload.debian.org/queued/debianqueued 2>/dev/null
 
 ################################################################################