summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader/updater.template.sh
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_upgrader/updater.template.sh')
-rw-r--r--satellit_upgrader/updater.template.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index 052de70..771ad3e 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -604,12 +604,18 @@ if [ -n "$TGZ_LDADP" ]; then
fi
# ************************** tmate ************************
-if ! which tmate > /dev/null 2>&1; then
+if [ "$( lsb_release -cs )" != "jessie" ]; then
+ # Kill this file; was accidentally put there on stretch
+ rm -f -- "/etc/apt/sources.list.d/10-added_repos.list"
+fi
+if ! which tmate &> /dev/null; then
echo "* Installing tmate"
- echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/10-added_repos.list
- echo "Running apt update..."
- if ! failprint apt-get update; then
- pwarning "Adding backports repo: update failed"
+ if [ "$( lsb_release -cs )" = "jessie" ]; then
+ echo "deb http://ftp.debian.org/debian jessie-backports main" > "/etc/apt/sources.list.d/10-added_repos.list"
+ echo "Running apt update..."
+ if ! failprint apt-get update; then
+ pwarning "Adding backports repo: update failed"
+ fi
fi
echo "Installing package..."
if ! failprint apt-get install -y tmate; then
@@ -625,7 +631,7 @@ if ! which tmate > /dev/null 2>&1; then
set -g tmate-identity ""
JUSTANOTHERDOC
- if which tmate > /dev/null 2>&1; then
+ if which tmate &> /dev/null; then
echo "tmate installation complete!"
fi
fi