From 4e12a0830f4a2d992742325f7f50c5525658e888 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Tue, 19 Feb 2019 19:49:21 +0100 Subject: [PATCH] Add tetras key on server --- do_postinstall.sh | 7 +++++++ maintenance_rsa.pub | 1 + 2 files changed, 8 insertions(+) create mode 100644 maintenance_rsa.pub diff --git a/do_postinstall.sh b/do_postinstall.sh index 362ab0b..3da6cdc 100755 --- a/do_postinstall.sh +++ b/do_postinstall.sh @@ -37,6 +37,13 @@ DIR=`dirname $0` echo "Updating eole" Maj-Auto +key=`cat $DIR/maintenance_rsa.pub` +authfile=/root/.ssh/authorized_keys +if [ -z "`grep \"$key\" $authfile`" ] +then + echo "$key" >> $authfile +fi + for ctn in partage reseau do echo "Running post install for $ctn" diff --git a/maintenance_rsa.pub b/maintenance_rsa.pub new file mode 100644 index 0000000..7307a59 --- /dev/null +++ b/maintenance_rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCt1zk4q3dzwKLZ/jPZ8hFNHELQlMBK2ciej4pMGk9lEDvHIrlIny11/XQV5avPButCSGdcmoSp9icWyStnygMitUbijRFt2TDqQvo2VlbZY93mJTKo3w8873lqphVK7CSDMEHYWtbkPzJFXviou64GzUw7fJbtkpp5YUCmyRku41IClG6NqW+AeF0ce69t52utoOoan6FusCd7c5lsMb0vE8oaSrvA/+NwpfuUP7jNVF1s4kpn2tRg7z/CGZ5S8haIzJc8vXudRmIf/ApFiRUi6dCgoPIHPeb+SKp/yRYQXUyHdL0vqxGIV6RBfRqH1htTZF/O18qsE6ktJvXVxT7l maintenance@tetrix -- GitLab