summarylogtreecommitdiffstats
path: root/immich-server.install
blob: ba5cd5c89f6e20c220eaa0fa4d4e088a0c77d467 (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
pre_install() {
    :
}

post_install() {
    echo -e "\033[1;34mINFO\033[0m\033[1m: Final steps to have a working immich instance:"
    echo -e "\033[1;34mINFO\033[0m\033[1m:     * add pgvecto.rs extension to postgres using \`sudo -u postgres psql -c 'ALTER SYSTEM SET shared_preload_libraries = \"vectors.so\"'\`. Restart of postgres service required.\033[0m"
    echo -e "\033[1;34mINFO\033[0m\033[1m:     * initialise postgres and create a database called 'immich' (https://wiki.archlinux.org/title/PostgreSQL)\033[0m"
    echo -e "\033[1;34mINFO\033[0m\033[1m:     * enable an nginx config then start nginx.service, an example that servers immich on port 8080 is given at /usr/share/doc/immich/examples/nginx.conf\033[0m"
    echo -e "\033[1;34mINFO\033[0m\033[1m:     * ensure immich-server resolves to 127.0.0.1 and/or ::1, e.g. through /etc/hosts\033[0m"
    echo -e "\033[1;34mINFO\033[0m\033[1m:     * start/enable immich-server.service\033[0m"
}

pre_upgrade() {
    :
}

post_upgrade() {
    :
}

pre_remove() {
    :
}

post_remove() {
    :
}