Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve doc add systemd unit to start UI #484

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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