diff options
author | Sir-Photch | 2023-10-01 11:15:03 -0700 |
---|---|---|
committer | Sir-Photch | 2023-10-01 11:15:03 -0700 |
commit | 26c07ca009f7ba33e1c1fee59a8825f4b258eb9c (patch) | |
tree | edefd19def2010dfea730d6fa764777ae2eca6d0 /dab-rs.install | |
download | aur-26c07ca009f7ba33e1c1fee59a8825f4b258eb9c.tar.gz |
ready, set, go!
Diffstat (limited to 'dab-rs.install')
-rw-r--r-- | dab-rs.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dab-rs.install b/dab-rs.install new file mode 100644 index 000000000000..26ce098f75fd --- /dev/null +++ b/dab-rs.install @@ -0,0 +1,18 @@ +post_install() { + echo "v v v v v v v v v v + +To setup dab-rs, you need to create a database and user in postgresql: + +# sudo -u postgres -- psql -c \\ + \"CREATE USER dab-rs_user WITH PASSWORD 'A_SECURE_PASSWORD_THAT_I_HAVE_REPLACED'; \\ + CREATE DATABASE dab-rs OWNER dab-rs_user; \\ + GRANT ALL PRIVILEGES ON DATABASE dab-rs TO dab-rs_user; \\ + REVOKE CONNECT ON DATABASE dab-rs FROM PUBLIC;\" + +Then update the configuration in /etc/dab-rs/Settings.toml. +Finally enable/start the service: + +# systemctl enable --now dab-rs.service + +^ ^ ^ ^ ^ ^ ^ ^ ^ ^" +} |