summarylogtreecommitdiffstats
path: root/plume.install
blob: af0e7de2edfbd252cf76299ffedf1e96ff40f258 (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
pre_install(){
    echo ""
    echo "==> You must install postgresql or sqlite"
    echo ""
}
post_install() {
    echo ""
    echo "==> Firstly, you use set up the postgresql before use it: sudo -u postgres createuser -d -P plume_user && sudo -u postgres createdb -O plume_user plume_db"
    echo ""
    echo "==> Secondly, edit /etc/plume/config file based on what you set"
    echo ""
    echo "==> Finally, use the command to init the db"
    echo ""
    echo "==> cd /usr/share/webapps/plume && plm migration run && plm search init"
    echo ""
    echo "==> plm instance new --private --domain DOMAIN --name 'PLUME_NAME' -l 'LICENSE_NAME' (if you want to open registeration, without --private)"
    echo ""
    echo "==> plm users new --admin (create normal user without --admin)"
    echo ""
    echo "==> chown -R plume:plume /usr/share/webapps/plume"
    echo ""
    echo "==> to start and enable the service: systemctl start plume && systemctl enable plume"
    echo ""
    echo "Be careful to upgrade the postgresql db"
    echo ""
    echo "please read for more details: https://docs.joinplu.me/ for details"
}