You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
986 B
48 lines
986 B
#!/usr/bin/env bash
|
|
|
|
DESC="Configuration de base."
|
|
|
|
SYSTEMS="debian-1"
|
|
|
|
prepareTp() {
|
|
while :; do
|
|
vdn-ssh -t root@debian-1 'http_proxy=http://193.49.118.36:8080/ https_proxy=http://193.49.118.36:8080/ wget -O /tmp/r http://limos.fr' || {
|
|
echo
|
|
echo "IMPOSSIBLE DE http://limos.fr... retry..."
|
|
echo
|
|
sleep 1
|
|
} && break
|
|
done
|
|
|
|
vdn-ssh -t root@debian-1 '
|
|
export http_proxy=http://193.49.118.36:8080/;
|
|
export https_proxy=http://193.49.118.36:8080/;
|
|
[ ! -d testssl.sh ] && git clone https://github.com/drwetter/testssl.sh.git || \
|
|
echo "testssl.sh déjà présent."
|
|
'
|
|
|
|
|
|
vdn-ssh -t root@debian-1 '
|
|
export http_proxy=http://193.49.118.36:8080/;
|
|
export https_proxy=http://193.49.118.36:8080/;
|
|
|
|
apt-get install -y webcheck
|
|
'
|
|
}
|
|
|
|
run() {
|
|
local r
|
|
setErrorHandler
|
|
echoStart
|
|
|
|
requireSshGuests $SYSTEMS
|
|
|
|
prepareTp
|
|
r=$?
|
|
unsetErrorHandler
|
|
echoDone
|
|
return $r
|
|
|
|
}
|
|
|