diff options
Diffstat (limited to 'debian/postinst')
| -rw-r--r-- | debian/postinst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/postinst b/debian/postinst index d12db0e..c3b5ad3 100644 --- a/debian/postinst +++ b/debian/postinst @@ -21,8 +21,12 @@ if [ "$1" = configure ]; then # unknown adduser error, simply exit exit 1 } - adduser linbpq dialout - adduser linbpq plugdev + if ! id -nGz linbpq | grep -qzxF 'dialout' ; then + adduser linbpq dialout + fi + if ! id -nGz linbpq | grep -qzxF 'plugdev' ; then + adduser linbpq plugdev + fi chown :linbpq /opt/oarc/bpq chmod 775 /opt/oarc/bpq |
