diff --git a/src/DEBIAN_postinst.in b/src/DEBIAN_postinst.in index 71a6bc84a1..9806e829cf 100755 --- a/src/DEBIAN_postinst.in +++ b/src/DEBIAN_postinst.in @@ -62,11 +62,14 @@ do_create_rdc_user() { --no-create-home \ --disabled-password \ rdc + # only add render if it exists if [ $(getent group render) ]; then usermod -a -G render rdc - else - usermod -a -G video rdc fi + + # add video always + usermod -a -G video rdc + # Make sure this doesn't return non-zero if an id already exists return 0 } diff --git a/src/RPM_rpm_post.in b/src/RPM_rpm_post.in index 658c1298a0..88d3a3ebf4 100755 --- a/src/RPM_rpm_post.in +++ b/src/RPM_rpm_post.in @@ -53,12 +53,14 @@ do_update_alternatives(){ # https://fedoraproject.org/wiki/Packaging%3aUsersAndGroups do_create_rdc_user() { useradd -r -s /sbin/nologin rdc + # only add render if it exists if [ $(getent group render) ]; then usermod -a -G render rdc - else - usermod -a -G video rdc fi + # add video always + usermod -a -G video rdc + # Make sure this doesn't return non-zero if an id already exists return 0 }