Commit 83f4a3b1 authored by Joanne Hugé's avatar Joanne Hugé

Update scripts

parent fd1d0541
...@@ -6,4 +6,5 @@ fi ...@@ -6,4 +6,5 @@ fi
hostnamectl set-hostname ors$1; hostnamectl set-hostname ors$1;
sed -i "s/orsXX/ors$1/" /etc/hosts /etc/hostname; sed -i "s/orsXX/ors$1/" /etc/hosts /etc/hostname;
rm -rf /etc/ssh/ssh_host_*; rm -rf /etc/ssh/ssh_host_*;
dpkg-reconfigure openssh-server dpkg-reconfigure openssh-server;
passwd
#!/bin/bash
for i in $(find /srv/slapgrid -type d -name "slappart*"|sed 's#.*slappart\([0-9]*\)#\1#g'|sort -h); do
cd /srv/slapgrid/slappart$i;
if [ -f .installed.cfg ]; then
TITLE=$(grep root-instance-title .installed.cfg |sed 's/.* = \(.*\)/\1/g')
TYPE=$(find . -name "instance-lte-*"| sed 's#./instance-lte-\(.*\).cfg#\1#g')
echo "slappart$i $TYPE $TITLE";
fi
done | column -t
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment