19 lines
368 B
Text
19 lines
368 B
Text
|
#!/bin/sh
|
||
|
set -eu
|
||
|
|
||
|
group=wikijs
|
||
|
config_file='/etc/wikijs/config.yml'
|
||
|
|
||
|
setcap 'cap_net_bind_service=+ep' /usr/bin/node
|
||
|
|
||
|
cat >&2 <<-EOF
|
||
|
*
|
||
|
* 1. Adjust settings in /etc/wikijs/config.yml.
|
||
|
*
|
||
|
* 2. Create database for wikijs:
|
||
|
*
|
||
|
* psql -c "CREATE ROLE wikijs PASSWORD 'top-secret' INHERIT LOGIN;"
|
||
|
* psql -c "CREATE DATABASE wkijs OWNER wikijs ENCODING 'UTF-8';"
|
||
|
*
|
||
|
EOF
|