diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-02-03 20:44:24 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-02-03 20:44:24 +0100 |
commit | 10d6359c3b3b919952c8beb584122602d8a2c8b6 (patch) | |
tree | d307fe3597bf3cfe3ffd44277927158ef5da4e38 /pcr/mediatomb/mediatomb.install | |
parent | 3cd461930add316e1fc394d964dd221159266684 (diff) | |
download | abslibre-10d6359c3b3b919952c8beb584122602d8a2c8b6.tar.gz abslibre-10d6359c3b3b919952c8beb584122602d8a2c8b6.tar.bz2 abslibre-10d6359c3b3b919952c8beb584122602d8a2c8b6.zip |
pcr/mediatomb: bumped pkgrel and rebuilt
Diffstat (limited to 'pcr/mediatomb/mediatomb.install')
-rw-r--r-- | pcr/mediatomb/mediatomb.install | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/pcr/mediatomb/mediatomb.install b/pcr/mediatomb/mediatomb.install index 27f71d5a4..cb343b455 100644 --- a/pcr/mediatomb/mediatomb.install +++ b/pcr/mediatomb/mediatomb.install @@ -1,20 +1,18 @@ post_install() { - post_upgrade - passwd -l mediatomb &>/dev/null + systemd-sysusers mediatomb.conf + install -dm700 -omediatomb -gmediatomb /var/lib/mediatomb + echo 'Warning: the MediaTomb web interface exposes your filesystem to the network' echo 'For maximum security, set <ui enabled="no"> in your MediaTomb config file' } post_upgrade() { - # create user/group that the daemon will run as by default, do not delete this on uninstall, as it will own files - getent group mediatomb >/dev/null || groupadd -g 241 mediatomb &>/dev/null - getent passwd mediatomb >/dev/null || useradd -c 'Mediatomb DLNA Server' -u 241 -g mediatomb -b '/var/lib' -m -s /bin/false mediatomb &>/dev/null + systemd-sysusers mediatomb.conf - echo 'Attention: By default, MediaTomb now runs as its own user: mediatomb.' - echo 'Ensuring ownership of /var/lib/mediatomb is mediatomb:mediatomb...' - chown -R mediatomb:mediatomb /var/lib/mediatomb &>/dev/null - echo - echo 'Please note that the old rc script has been replaced with systemd service files.' - echo + if [ $(vercmp $2 0.12.1-12) -lt 1 ]; then + echo 'Attention: By default, MediaTomb now runs as its own user: mediatomb.' + echo 'Ensuring ownership of /var/lib/mediatomb is mediatomb:mediatomb...' + chown -R mediatomb:mediatomb /var/lib/mediatomb &>/dev/null + fi } |