blob: a213bfd76d64a43b33b36e54059b7b64566dd082 (
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
|
#!/bin/sh
post_install() {
chown -R turtl:turtl /var/lib/turtl
echo ":: Turtle needs a dedicated PostgreSQL user/db set up for it."
echo " Once it's set up, edit /usr/share/webapps/turtl/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 " Visit https://wiki.archlinux.org/index.php/PostgreSQL"
echo " to know how to install and configure PostgreSQL"
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 /usr/share/webapps/turtl"
echo " ./scripts/init-db.sh"
echo
echo ":: Finnaly, start the server: systemctl start turtl.service"
}
|