summarylogtreecommitdiffstats
path: root/paperless.install
blob: e83e7bded5bbebe25fbc02beacc46d5de8c691cf (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
post_install(){
 cat <<INFO

To complete the installation of this paperless fork, edit /etc/paperless.conf,
then create the database with

    sudo -u paperless paperless-manage migrate

and create a super user with

    sudo -u paperless paperless-manage createsuperuser

Paperless services can be started together with

    sudo systemctl start paperless.target

INFO
}

post_upgrade(){
 # warn the user if the provided hook is not being used
 if [ ! -e "/etc/pacman.d/hooks/paperless.hook" ]; then
  cat <<INFO

To complete the update process of paperless, you should run new migrations with

    sudo -u paperless paperless-manage migrate

This process can be automated by running once

    sudo mkdir -p /etc/pacman.d/hooks/
    sudo ln -s /usr/share/paperless/docs/paperless.hook /etc/pacman.d/hooks/

INFO
 fi
}