Disable error check in stop script

This commit is contained in:
Kirigaya Kazuto 2021-07-26 23:53:33 +00:00
parent 5061971ec6
commit 7a94df6b1f

View File

@ -89,8 +89,6 @@ tmux attach-session -t tunnel
logger.info("Generating stop script...")
with open("stop.sh", "w", encoding='utf-8') as f:
f.write('''#!/bin/bash
set -e
wg-quick down {}
tmux kill-session -t tunnel
'''.format(config["interface"]))
@ -99,7 +97,6 @@ tmux kill-session -t tunnel
logger.info("Generating restart script...")
with open("restart.sh", "w", encoding='utf-8') as f:
f.write('''#!/bin/bash
set -e
./stop.sh && ./start.sh
''')