summarylogtreecommitdiffstats
path: root/plume.install
blob: d8dc4ac2211d373a93a95917ae154774f0d94c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
    echo ""
    echo "==> Firstly, you use set up the postgresql: sudo -u postgres createuser -d -P plume_user && sudo -u postgres createdb -O plume_user plume_db"
    echo ""
    echo "==> Secondly, cd /usr/share/webapps/plume && cp .env.sample .env, edit .env 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"
}