diff options
author | Maxime Gauduin | 2016-04-13 21:49:50 +0200 |
---|---|---|
committer | Maxime Gauduin | 2016-04-13 21:49:50 +0200 |
commit | 31391f012deb5b8cd0d20fdc0a008473ba53dcd4 (patch) | |
tree | 34637be60f897cb7e1f9c05e1cc51de9566819f2 /emby-server.install | |
download | aur-31391f012deb5b8cd0d20fdc0a008473ba53dcd4.tar.gz |
emby-server-dev-git 3.0.5947.1884.r1.e042cf3-1
Diffstat (limited to 'emby-server.install')
-rw-r--r-- | emby-server.install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/emby-server.install b/emby-server.install new file mode 100644 index 000000000000..73c12f3f8514 --- /dev/null +++ b/emby-server.install @@ -0,0 +1,31 @@ +post_install() { + getent group emby > /dev/null 2>&1 || groupadd -g 422 emby + getent passwd emby > /dev/null 2>&1 || useradd -c 'Emby Media Server' -u 422 -g emby -d /var/lib/emby -s /usr/bin/nologin emby + passwd -l emby > /dev/null + + if [[ -d '/var/lib/emby-server' ]]; then + +cat <<EOF + +New installations store the emby database inside '/var/lib/emby' (previously +'/var/lib/emby-server'). Existing installations are left untouched. + +You can play safe and keep your existing setup, or you can adopt the new home +and move your database using the emby-migrate-database script. Make sure to run +pacdiff afterwards to merge the configuration changes. + + sudo emby-migrate-database /var/lib/emby-server /var/lib/emby + +The script can also be used for more advanced database migration. +Try "emby-migrate-database --help" for additional information. + +EOF + + fi +} + +post_upgrade() { + post_install +} + +# vim: ts=2 sw=2 et: |