summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-14 14:04:38 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-14 14:04:38 -0200
commitaea668e7b773ab30aed96119404b7e7c72c7e59c (patch)
tree06467d28018e1302cd925fe7921caf3aeeb735f0 /share
parent26a42923bc1d0fa2bf5457ae04ae072d112c5391 (diff)
downloadhydra-aea668e7b773ab30aed96119404b7e7c72c7e59c.tar.gz
hydra-aea668e7b773ab30aed96119404b7e7c72c7e59c.tar.bz2
Avoid a facter bug
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/system-upgrade3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade
index b26d90a..a35457b 100755
--- a/share/hydractl/system-upgrade
+++ b/share/hydractl/system-upgrade
@@ -24,7 +24,8 @@ hydra_config_load
BASENAME="`basename $0`"
# Available releases
-release="`facter lsbdistcodename`"
+#release="`facter lsbdistcodename`" # this doesn't work on squeeze
+release="`facter | grep lsbdistcodename | sed -e 's/lsbdistcodename => //'`"
nextrelease="`hydra_next_debian_release $release`"
# Ensure puppet is stopped during the process