[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-cloud/master] Do not hardcode distro name



commit 16519bc465e1a024bb8e4bf449e874ecf310cd08
Author: Runa A. Sandvik <runa.sandvik@xxxxxxxxx>
Date:   Mon Sep 24 20:28:13 2012 +0100

    Do not hardcode distro name
---
 ec2-prep.sh |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ec2-prep.sh b/ec2-prep.sh
index 9236527..0db2765 100644
--- a/ec2-prep.sh
+++ b/ec2-prep.sh
@@ -50,11 +50,11 @@ EOF
 cat << EOF > $UNATTENDED_UPGRADES
 // Automatically upgrade packages from these (origin, archive) pairs
 Unattended-Upgrade::Allowed-Origins {
-    "Ubuntu lucid";
-	"Ubuntu lucid-security";
-	"Ubuntu lucid-updates";
-	"TorProject lucid";
-	"TorProject experimental-lucid";
+    "Ubuntu $DISTRO";
+	"Ubuntu $DISTRO-security";
+	"Ubuntu $DISTRO-updates";
+	"TorProject $DISTRO";
+	"TorProject experimental-$DISTRO";
 };
 
 // Automatically reboot *WITHOUT CONFIRMATION* if the file

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits