summarylogtreecommitdiffstats
path: root/turtl-server-git.install
blob: 6d53e2cd1591c8c749a202b3a453febc9cfdfbae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

post_install() {
    echo ":: Changing the ownership of Turtl's main directory"
    chown -R turtl:turtl /var/www/turtl
    echo
    echo ":: Turtle needs a dedicated PostgreSQL user/db set up for it."
    echo "   Once it's set up, edit /var/www/turtl/server/config/config.yaml"
    echo "   to make 'connstr' match your user/db."
    echo "   e.g.: postgres://turtl:strongpassword@127.0.0.1:5432/turtl"
    echo
    echo ":: Take a look into 'uploads' and 's3' in config.yaml,"
    echo "   you may need to modify them to match your needs."
    echo 
    echo ":: Also, be sure to change app.secure_hash_salt in config.yaml"
    echo "   to any long string you want."
    echo 
    echo ":: Then, initialize the database"
    echo "   cd /var/www/turtl/server"
    echo "   ./scripts/init-db.sh"
    echo 
    echo ":: Finnaly, start the server: systemctl start turtle.service"
}