diff options
author | digitalone | 2019-08-19 11:03:44 +0200 |
---|---|---|
committer | digitalone | 2019-08-19 11:03:44 +0200 |
commit | 140cf9fdfbe96378c948b750a825cbd577350b69 (patch) | |
tree | 387bbe00dcb80c6a4ae06bbf6b757fe5e07900d8 /acestream-engine.install | |
parent | b545a8cc5b45dda359719f85b9e6c1c22af4dc4f (diff) | |
download | aur-140cf9fdfbe96378c948b750a825cbd577350b69.tar.gz |
modified acestream service and app data directory
Diffstat (limited to 'acestream-engine.install')
-rw-r--r-- | acestream-engine.install | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/acestream-engine.install b/acestream-engine.install index 346bb827b404..41650564e453 100644 --- a/acestream-engine.install +++ b/acestream-engine.install @@ -1,16 +1,29 @@ +#_create_acestream_user() { +# if ! getent passwd acestream &> /dev/null; then +# useradd -u 4035 -g video -M -s /usr/bin/nologin acestream +# fi +#} + +_remove_acestream_user() { + if getent passwd acestream &>/dev/null; then + userdel acestream + fi +} + post_install() { - if ! getent passwd acestream &> /dev/null; then - useradd -u 4035 -g video -m -s /usr/bin/nologin acestream - fi + _remove_acestream_user } post_upgrade() { - post_install + _remove_acestream_user } post_remove() { - if getent passwd acestream &>/dev/null; then - userdel acestream - fi + _remove_acestream_user + + echo + echo ">>> remove files under /usr/share/ACEStream if you" + echo ">>> don't need to reinstall the package in the future" + echo } |