[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] fix typo, preventing sql backups to be preserved after 30 days

Holger Levsen gitlab at salsa.debian.org
Fri Nov 20 12:33:31 GMT 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
6c938498 by Holger Levsen at 2020-11-20T13:33:21+01:00
fix typo, preventing sql backups to be preserved after 30 days

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -33,7 +33,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
 	mkdir -p $REP_RESULTS/backup
 
 	# keep 30 days and the 1st of the month
-	DAY=(date -d "30 day ago" '+%d')
+	DAY=$(date -d "30 day ago" '+%d')
 	DATE=$(date -d "30 day ago" '+%Y-%m-%d')
 	BACKUPFILE="$REP_RESULTS/backup/reproducible_$DATE.sql.xz"
 	if [ "$DAY" != "01" ] &&  [ -f "$BACKUPFILE" ] ; then



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6c938498551f9712bebcabaf4107e4ccf89c2317

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6c938498551f9712bebcabaf4107e4ccf89c2317
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20201120/aced334f/attachment.html>


More information about the Qa-jenkins-scm mailing list