From 23c31a9e39e6e8cd60f233a5e1e9e887df8e1bad Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Tue, 12 Oct 2021 21:49:00 +0200 Subject: * 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 --- ergo/ergo.install | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ergo/ergo.install (limited to 'ergo/ergo.install') 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 +} -- cgit v1.2.3-70-g09d2