Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c6237434e5b5f3cf829d0450a06a0cf4e083aeee
commit c6237434e5b5f3cf829d0450a06a0cf4e083aeee Author: James Buren <[email protected]> Date: Thu Nov 21 19:42:34 2013 -0600 fbterm-1.7.0-4-x86_64 * add daemon user setup to scriptlet diff --git a/source/apps-extra/fbterm/fbterm.install b/source/apps-extra/fbterm/fbterm.install index 955c48e..e12f796 100644 --- a/source/apps-extra/fbterm/fbterm.install +++ b/source/apps-extra/fbterm/fbterm.install @@ -1,5 +1,7 @@ post_install() { + getent group fbterm 2>&1 > /dev/null || groupadd -g 85 fbterm + getent passwd fbterm 2>&1 > /dev/null || useradd -u 85 -g 85 -d /var/lib/fbterm -s /sbin/nologin -c "fbterm daemon" fbterm } post_upgrade() @@ -12,6 +14,8 @@ pre_remove() post_remove() { + getent passwd fbterm 2>&1 > /dev/null && userdel fbterm + getent group fbterm 2>&1 > /dev/null && groupdel fbterm } op=$1 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
