diff options
author | Max Rees <maxcrees@me.com> | 2019-07-22 02:13:03 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2019-07-22 02:13:03 -0400 |
commit | 93b0513be9422e1666163d89031419412866e370 (patch) | |
tree | 8dfdcd50eb8b758584387bd0511968294118119a /user/vlc | |
parent | e144e346b829eb39c1d2c82f5bdc4f8d991624b7 (diff) | |
download | packages-93b0513be9422e1666163d89031419412866e370.tar.gz packages-93b0513be9422e1666163d89031419412866e370.tar.bz2 packages-93b0513be9422e1666163d89031419412866e370.tar.xz packages-93b0513be9422e1666163d89031419412866e370.zip |
user/*: use useradd, groupadd instead of adduser, addgroup
Diffstat (limited to 'user/vlc')
-rw-r--r-- | user/vlc/APKBUILD | 2 | ||||
-rw-r--r-- | user/vlc/vlc-daemon.pre-install | 16 |
2 files changed, 6 insertions, 12 deletions
diff --git a/user/vlc/APKBUILD b/user/vlc/APKBUILD index 6bd76fafe..675db1478 100644 --- a/user/vlc/APKBUILD +++ b/user/vlc/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=vlc pkgver=3.0.7.1 -pkgrel=1 +pkgrel=2 pkgdesc="Multi-platform MPEG, VCD/DVD, and DivX player" triggers="vlc-libs.trigger=/usr/lib/vlc/plugins" pkgusers="vlc" diff --git a/user/vlc/vlc-daemon.pre-install b/user/vlc/vlc-daemon.pre-install index aed6c1893..c02d4a911 100644 --- a/user/vlc/vlc-daemon.pre-install +++ b/user/vlc/vlc-daemon.pre-install @@ -1,15 +1,9 @@ #!/bin/sh -groups="vlc audio video" - -for group in $groups; do - addgroup -S $group 2>/dev/null -done -adduser -S -D -h /home/vlc -s /bin/sh -G vlc -g vlc vlc 2>/dev/null - -# make sure vlc are in all groups -for group in $groups; do - addgroup vlc $group 2>/dev/null -done +groupadd -r vlc 2>/dev/null +groupadd -r audio 2>/dev/null +groupadd -r video 2>/dev/null +useradd -c vlc -s /sbin/nologin -g vlc -G audio,video \ + -m -d /home/vlc -k /etc/skel -r vlc 2>/dev/null exit 0 |