From 0aff6fd5b4e5c0c3a38dc46e15fcc253d1032787 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Fri, 9 Sep 2016 19:02:39 +0200 Subject: [SSPS/SSUS] tmate config written --- satellit_upgrader/updater.template.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'satellit_upgrader/updater.template.sh') diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index 669821d..85e87a2 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -341,9 +341,20 @@ fi echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/10-added_repos.list apt-get update || pwarning "Adding backborts repo: update failed" && \ echo "Repository backports added." -apt-get install tmate || pwarning "Could not install tmate. Please check whether repo backports was added and install ba hand." && \ +apt-get install tmate || pwarning "Could not install tmate. Please check whether repo backports was added and install by hand." && \ echo "tmate istalled." +write_tmate_config() { + [ -d /root/.tmate.conf ] && mv /root/.tmate.conf.old + cat > /root/.tmate.conf <<-JUSTANOTHERDOC + set -g tmate-server-host "tmate.ruf.uni-freiburg.de" + set -g tmate-server-port 2222 + set -g tmate-server-rsa-fingerprint "d7:d7:06:d0:b6:0d:75:a1:ad:ec:69:18:b3:a3:c0:4a" + set -g tmate-server-ecdsa-fingerprint "4f:c9:81:f1:1a:20:7d:6f:97:12:f2:a9:0f:f4:c5:6c" + set -g tmate-identity "" + JUSTANOTHERDOC +} + # ************************ sudo config ********************* if [ -n "$FILEDIR/tm-sudo-config" ]; then cp -f "$FILEDIR/tm-sudo-config" "/etc/sudoers.d/taskmanager" || pwarning "Could not update sudo conf for taskmanager" -- cgit v1.2.3-55-g7522