Skip to content

Commit

Permalink
Small debian package fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtoobii committed May 5, 2021
1 parent d641245 commit c7e15e2
Show file tree
Hide file tree
Showing 11 changed files with 558 additions and 2,246 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
build_deb:
strategy:
fail-fast: false
matrix:
RELEASE:
- Ubuntu:
Expand Down
2 changes: 1 addition & 1 deletion cpanfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requires 'CallBackery', '>= 0.35.5';
requires 'CallBackery', '0.35.5'; # do not change to 0.36.x breaks select-box and reload
requires 'Mojo::SQLite';
requires 'Wireguard::WGmeta', '>= 0.2.3';
requires 'Net::IP', '>=1.26';
Expand Down
7 changes: 6 additions & 1 deletion debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ adduser --system --group --no-create-home $USERNAME

# set permissions and group membership on /etc/wireguard
chgrp --silent --recursive $GROUPNAME /etc/wireguard/

# set group permissions
chmod g+rwx /etc/wireguard
chmod -R g+rw /etc/wireguard

# set permissions for /opt/wg-wrangler/etc dir
chgrp --silent --recursive $GROUPNAME /opt/wg-wrangler/etc
# set group permissions
chmod -R g+rwx /opt/wg-wrangler/etc

# Whitelist wg* commands for us
echo "%$GROUPNAME ALL=NOPASSWD: /usr/bin/wg*" >> /etc/sudoers.d/wg-wrangler

2 changes: 2 additions & 0 deletions debian/wg-wrangler.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Description=wg-wranger wireguard manager

[Service]
Environment=MOJO_MODE=production
Environment=MOJO_LOG_LEVEL=info
Type=simple
User=wg-wrangler_manager
Group=wg-wrangler_manager
Expand Down
Loading

0 comments on commit c7e15e2

Please sign in to comment.