12 lines
340 B
Bash
Executable File
12 lines
340 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Tunnel SSH vers Vigile (DB)
|
|
cp /ssh/vigile.key /tmp/vigile.key
|
|
chmod 600 /tmp/vigile.key
|
|
ssh -fN -L 15432:localhost:5432 -i /tmp/vigile.key -o StrictHostKeyChecking=no -o ServerAliveInterval=30 ubuntu@79.72.30.231
|
|
|
|
echo '[start.sh] Tunnel SSH vers Vigile établi sur 127.0.0.1:15432'
|
|
|
|
exec python app.py
|