summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader/updater.template.sh
diff options
context:
space:
mode:
authorChristian Rößler2016-09-09 19:02:39 +0200
committerChristian Rößler2016-09-09 19:02:39 +0200
commit0aff6fd5b4e5c0c3a38dc46e15fcc253d1032787 (patch)
tree646b2cf72ceb3b338ef1bbf591684b18638eff22 /satellit_upgrader/updater.template.sh
parentMerge branch 'master' of git.openslx.org:bwlp/setup-scripts (diff)
downloadsetup-scripts-0aff6fd5b4e5c0c3a38dc46e15fcc253d1032787.tar.gz
setup-scripts-0aff6fd5b4e5c0c3a38dc46e15fcc253d1032787.tar.xz
setup-scripts-0aff6fd5b4e5c0c3a38dc46e15fcc253d1032787.zip
[SSPS/SSUS] tmate config written
Diffstat (limited to 'satellit_upgrader/updater.template.sh')
-rw-r--r--satellit_upgrader/updater.template.sh13
1 files changed, 12 insertions, 1 deletions
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"