Merge pull request #922 from WGDashboard/docker-duplicate-hotfix

pull/924/head
Donald Zou 2025-09-22 17:53:34 +08:00 committed by GitHub
commit 10a8d22efd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 34 deletions

View File

@ -105,7 +105,7 @@ ensure_installation() {
echo "Looks like the installation succeeded. Moving on."
# Setup WireGuard if needed
if [ ! -f "/etc/wireguard/wg0.conf" ]; then
if [ -z "$(ls -A /etc/wireguard)" ]; then
cp -a "/configs/wg0.conf.template" "/etc/wireguard/wg0.conf"
echo "Setting a secure private key."