Полностью доведена production-логика AWG2 harness по up2: strict execution, tc parser, anti-torrent, status и документация
This commit is contained in:
+4
-2
@@ -67,11 +67,13 @@ if [[ "$AUTO_INSTALL" == true ]]; then
|
||||
sudo install -m 0755 "$TARGET_BIN" /usr/local/bin/awg2-harness
|
||||
sudo mkdir -p /etc/awg2-harness
|
||||
if [[ ! -f /etc/awg2-harness/config.toml ]]; then
|
||||
sudo install -m 0644 "$ROOT_DIR/config.example.toml" /etc/awg2-harness/config.toml
|
||||
echo "Missing /etc/awg2-harness/config.toml"
|
||||
echo "Refusing to install example config as production config."
|
||||
echo "Create config manually from $ROOT_DIR/config.example.toml and re-run with --install."
|
||||
exit 1
|
||||
fi
|
||||
sudo install -m 0644 "$ROOT_DIR/awg2-harness.service" /etc/systemd/system/awg2-harness.service
|
||||
sudo systemctl daemon-reload
|
||||
fi
|
||||
|
||||
echo "Build completed: $TARGET_BIN"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user