summarylogtreecommitdiffstats
path: root/g13.install
diff options
context:
space:
mode:
Diffstat (limited to 'g13.install')
-rw-r--r--g13.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/g13.install b/g13.install
index d252acd2c254..652e0f2f1697 100644
--- a/g13.install
+++ b/g13.install
@@ -1,7 +1,6 @@
post_install() {
echo "(Re)creating group and user ..."
- getent group g13 > /dev/null 2>&1 || groupadd -g 613 g13
- getent passwd g13 > /dev/null 2>&1 || useradd -c 'Logitech G13 daemon' -u 613 -g g13 -G wheel -d /run/g13d -s /usr/bin/nologin g13
+ getent passwd g13 > /dev/null 2>&1 || useradd -c 'Logitech G13 daemon' -G wheel -d /run/g13d -s /usr/bin/nologin -r g13
passwd -l g13 > /dev/null
echo "(Re)creating tmpfiles ..."
systemd-tmpfiles --create /usr/lib/tmpfiles.d/g13.conf
@@ -20,7 +19,8 @@ pre_remove() {
}
post_remove() {
+ echo "Making sure the g13d service is not running ..."
+ systemctl stop g13
echo "Removing user and group ..."
- getent group g13 > /dev/null 2>&1 && groupdel g13
getent passwd g13 > /dev/null 2>&1 && userdel g13
}