Skip to content

Commit

Permalink
work by @ptudor on the Debian scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ahupowerdns committed Apr 28, 2020
1 parent ecc0188 commit cea8f53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: galmon
Section: net
Priority: optional
Maintainer: Patrick Tudor <[email protected]>
Build-Depends: debhelper (>=11~)
Build-Depends: debhelper (>=11~), help2man, libzstd-dev, adduser
Standards-Version: 4.3.0
Homepage: https://github.com/ahupowerdns/galmon/

Expand Down
1 change: 1 addition & 0 deletions debian/galmon.galmon-upgrade.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ StartLimitIntervalSec=0
ConditionPathExists=/etc/default/galmon

[Service]
Environment=DEBIAN_FRONTEND=noninteractive
Type=simple
Restart=no
ExecStartPre=+apt-get update
Expand Down
6 changes: 4 additions & 2 deletions debian/galmon.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ if getent passwd ubxtool > /dev/null ; then
echo "galmon: ubxtool user exists, skipping"
else
echo "galmon: creating ubxtool system user"
adduser --system ubxtool && adduser ubxtool ubxtool
adduser --system ubxtool --no-create-home --home /run/ubxtool
echo "galmon: adding ubxtool user to ubxtool group"
adduser ubxtool ubxtool
echo "galmon: adding ubxtool user to dialout group"
adduser ubxtool dialout
fi
Expand All @@ -41,7 +43,7 @@ print_help_text() {
echo "Example: cp /etc/default/galmon /etc/default/ubxtool-ttyACM0"
echo "Example: vi /etc/default/ubxtool-ttyACM0"
echo "Example: systemctl enable --now ubxtool@ttyACM0"
echo "Example: systemctl enable --now galmon-upgrade.timer"
echo "Example: (beta testing) systemctl enable --now galmon-upgrade.timer"
}

setup_user
Expand Down

0 comments on commit cea8f53

Please sign in to comment.