blob: a3369d2504f20bee5b00159c4c7c0046bf359b12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
post_install() {
cat << EOF
==> If you want to use Ampache's transcoding and/or downsampling you'll
need the packages specified in optdepends.
Check out http://wiki.archlinux.org/index.php/Ampache and
https://github.com/ampache/ampache/wiki/Transcoding for more info.
==> Please enable curl, iconv, gd, gettext and pdo_mysql modules in php.ini.
==> Database will be upgraded automatically in case of update from 3.7.
Check out https://github.com/ampache/ampache/wiki/Installation for
more info about installation process.
==> An nginx example vhost in provided in /usr/share/doc/ampache/nginx-example.conf
To use it, follow following instructions :
* Copy the file to /etc/nginx/ampache.conf
* Customize server_name directive using your FQDN
* Add all your music local directories to open_basedir directive
* Add this line to /etc/nginx/nginx.conf :
include ampache.conf;
* Reload nginx using : systemctl reload nginx
EOF
/bin/true
}
post_upgrade() {
if [ "$(vercmp "$2" 3.8.2-2)" -lt 0 ]; then
cat << EOF
==> Warning : Path has been updated to fit Archlinux Packaging Guidelines
From : /srv/http/ampache
To : /usr/share/webapps/ampache
Please update your virtualhosts.
EOF
fi
if [ "$(vercmp "$2" 6.0.0-1)" -lt 0 ]; then
cat << EOF
==> Database Upgrade required : Please update using CLI.
"php bin/cli admin:updateDatabase -e"
EOF
fi
post_install
}
|