Skip to content

Conversation

AttilioGreco
Copy link

No description provided.

@nebulosa2007
Copy link
Contributor

Good work!

Took you ideas for AUR package with some modifications:

# https://wiki.archlinux.org/title/Users_and_groups#Example_adding_a_system_user
useradd -r -U -s /usr/bin/nologin -m -d /var/lib/wireguard-ui wireguard-ui
# Need check folder on exist first
[ ! -f "/etc/wireguard/wg0.conf" ] && { mkdir -p /etc/wireguard/; touch /etc/wireguard/wg0.conf; }

And

[Unit]
Description=A web user interface to manage your WireGuard setup
Documentation=https://github.com/ngoduykhanh/wireguard-ui

...

EnvironmentFile=-/etc/wireguard-ui/environment.conf 
ExecStart=/usr/bin/wireguard-ui

Making environment.conf file not always needed so it is with -

@systemcrash
Copy link
Contributor

These changes would be much better if they used heredocs. See how that's done in the README and implement those here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants