work by @ptudor on the Debian scripts
parent
ecc0188151
commit
cea8f539a0
|
@ -2,7 +2,7 @@ Source: galmon
|
||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Patrick Tudor <debian@ptudor.net>
|
Maintainer: Patrick Tudor <debian@ptudor.net>
|
||||||
Build-Depends: debhelper (>=11~)
|
Build-Depends: debhelper (>=11~), help2man, libzstd-dev, adduser
|
||||||
Standards-Version: 4.3.0
|
Standards-Version: 4.3.0
|
||||||
Homepage: https://github.com/ahupowerdns/galmon/
|
Homepage: https://github.com/ahupowerdns/galmon/
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ StartLimitIntervalSec=0
|
||||||
ConditionPathExists=/etc/default/galmon
|
ConditionPathExists=/etc/default/galmon
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=DEBIAN_FRONTEND=noninteractive
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=no
|
Restart=no
|
||||||
ExecStartPre=+apt-get update
|
ExecStartPre=+apt-get update
|
||||||
|
|
|
@ -17,7 +17,9 @@ if getent passwd ubxtool > /dev/null ; then
|
||||||
echo "galmon: ubxtool user exists, skipping"
|
echo "galmon: ubxtool user exists, skipping"
|
||||||
else
|
else
|
||||||
echo "galmon: creating ubxtool system user"
|
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"
|
echo "galmon: adding ubxtool user to dialout group"
|
||||||
adduser ubxtool dialout
|
adduser ubxtool dialout
|
||||||
fi
|
fi
|
||||||
|
@ -41,7 +43,7 @@ print_help_text() {
|
||||||
echo "Example: cp /etc/default/galmon /etc/default/ubxtool-ttyACM0"
|
echo "Example: cp /etc/default/galmon /etc/default/ubxtool-ttyACM0"
|
||||||
echo "Example: vi /etc/default/ubxtool-ttyACM0"
|
echo "Example: vi /etc/default/ubxtool-ttyACM0"
|
||||||
echo "Example: systemctl enable --now 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
|
setup_user
|
||||||
|
|
Loading…
Reference in New Issue