aktualisierung
This commit is contained in:
parent
05c8513a77
commit
59e6b3a6f0
1 changed files with 5 additions and 3 deletions
|
|
@ -1,16 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# 1. Installation außerhalb von tmux
|
||||
# 1. Installation von tmux
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update -qq
|
||||
apt-get install -y ansible tmux vim
|
||||
|
||||
# sicherstellen, dass ignoreeof gesetzt ist
|
||||
if ! grep -Fxq 'set -o ignoreeof' ~/.bashrc; then
|
||||
echo 'set -o ignoreeof' >> ~/.bashrc
|
||||
fi
|
||||
# 2. Prüfen, ob bereits in tmux
|
||||
if [ -z "$TMUX" ]; then
|
||||
SESSION="demo"
|
||||
tmux new-session -d -s "$SESSION" bash -c '
|
||||
set -o ignoreeof
|
||||
clear
|
||||
echo -e "gerade habe ich den Bildschirm gelöscht :)\n\n"
|
||||
echo -e "Dieses Skript ist eigentlich nur dazu da, den Aufruf eines Skriptes zu üben, aber da es ja schon läuft,\nhab ich noch kurz ansible und tmux installiert.\n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue