Browse Source

Fix execution command with command redirect

pull/394/head
BrainStone 4 years ago
parent
commit
11f116c801
No known key found for this signature in database GPG Key ID: 66CCC234C2CEB306
  1. 4
      src/lib/WireGuard.js

4
src/lib/WireGuard.js

@ -127,7 +127,9 @@ AllowedIPs = ${client.address}/32`;
async __syncConfig() {
debug('Config syncing...');
await Util.exec(`${SUDO_STRING}wg syncconf wg0 <(${SUDO_STRING}wg-quick strip wg0)`);
await Util.exec(`${SUDO_STRING} bash -c "wg syncconf wg0 <(wg-quick strip wg0)"`, {
log: `${SUDO_STRING}wg syncconf wg0 <(${SUDO_STRING}wg-quick strip wg0)`,
});
debug('Config synced.');
}

Loading…
Cancel
Save