diff options
author | Deposite Pirate | 2021-10-12 21:49:00 +0200 |
---|---|---|
committer | Deposite Pirate | 2021-10-12 21:49:00 +0200 |
commit | 23c31a9e39e6e8cd60f233a5e1e9e887df8e1bad (patch) | |
tree | 3bb4e08e65b28914c6b537355f9d59e7630ab904 /ergo/ergo.install | |
parent | 600e3735d1d0751236ca5ab1eb715ececf5388cb (diff) |
* Ergo build which isn't lamebrained (ruby)
new file: ergo/.SRCINFO
new file: ergo/.gitignore
new file: ergo/PKGBUILD
new file: ergo/ergo-paths.patch
new file: ergo/ergo.install
new file: ergo/ergo.service
new file: ergo/ergo.sysusers
new file: ergo/ergo.tmpfiles
Diffstat (limited to 'ergo/ergo.install')
-rw-r--r-- | ergo/ergo.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ergo/ergo.install b/ergo/ergo.install new file mode 100644 index 0000000..26c9ee9 --- /dev/null +++ b/ergo/ergo.install @@ -0,0 +1,24 @@ +# Warning: This file has syntactically significant, mixed whitespace. +# The heredoc bodies are indented with tabs up to the block level. +# The tabs are for block indentation in the source code. +# The spaces following the tabs are for indentation of the printed output. + +post_install() { + if [[ -e /var/lib/oragono/ircd.db ]]; then +cat <<-EOF + ==> Oragono is now Ergo, you may want to move the + files in /var/lib/oragono to /var/lib/ergo. +EOF + else + if [[ ! -e /var/lib/ergo/ircd.db ]]; then +cat <<-EOF + ==> Ergo needs to initialize the database and have + certificates made available prior to use. + + cd /var/lib/ergo + sudo -u ergo /usr/bin/ergo mkcerts --config /etc/ergo.conf + sudo -u ergo /usr/bin/ergo initdb --config /etc/ergo.conf +EOF + fi + fi +} |