mirror of
https://github.com/Kiritow/wg-ops.git
synced 2024-03-22 13:11:37 +08:00
Disable error check in stop script
This commit is contained in:
parent
5061971ec6
commit
7a94df6b1f
|
@ -89,8 +89,6 @@ tmux attach-session -t tunnel
|
||||||
logger.info("Generating stop script...")
|
logger.info("Generating stop script...")
|
||||||
with open("stop.sh", "w", encoding='utf-8') as f:
|
with open("stop.sh", "w", encoding='utf-8') as f:
|
||||||
f.write('''#!/bin/bash
|
f.write('''#!/bin/bash
|
||||||
set -e
|
|
||||||
|
|
||||||
wg-quick down {}
|
wg-quick down {}
|
||||||
tmux kill-session -t tunnel
|
tmux kill-session -t tunnel
|
||||||
'''.format(config["interface"]))
|
'''.format(config["interface"]))
|
||||||
|
@ -99,7 +97,6 @@ tmux kill-session -t tunnel
|
||||||
logger.info("Generating restart script...")
|
logger.info("Generating restart script...")
|
||||||
with open("restart.sh", "w", encoding='utf-8') as f:
|
with open("restart.sh", "w", encoding='utf-8') as f:
|
||||||
f.write('''#!/bin/bash
|
f.write('''#!/bin/bash
|
||||||
set -e
|
|
||||||
./stop.sh && ./start.sh
|
./stop.sh && ./start.sh
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user