summaryrefslogtreecommitdiff
path: root/honk.install
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-05-11 23:05:31 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2021-05-11 23:15:11 +0100
commite4ea33520c6dcb968f355a7008566f951ee88a90 (patch)
tree2001fcc0602acdfb6a5ad1c703e02397fe02ed7d /honk.install
parent646fa9c3925e80333e19f6f775f38410cea4efb4 (diff)
downloadhonk-hg_aur-e4ea33520c6dcb968f355a7008566f951ee88a90.tar.gz
honk-hg_aur-e4ea33520c6dcb968f355a7008566f951ee88a90.zip
add fixes suggested by kseistrup
Diffstat (limited to 'honk.install')
-rwxr-xr-xhonk.install7
1 files changed, 4 insertions, 3 deletions
diff --git a/honk.install b/honk.install
index dcb03bb..e130f05 100755
--- a/honk.install
+++ b/honk.install
@@ -1,13 +1,14 @@
#!/bin/sh
_BOLD='\033[01m'
_STYLE_END='\033[0m'
-_HONKDIR="/usr/share/webapps/honk"
+_HONKDIR="/usr/share/honk"
post_install() {
+ systemctl daemon-reload
+ mandb -q > /dev/null
useradd -r -m -d $_HONKDIR honk
chown honk:honk -R "$_HONKDIR"
- systemctl daemon-reload
- printf "\n\n${_BOLD}VERY IMPORTANT${_STYLE_END}:\nType:\n\t cd $_HONKDIR && ./honk init\nin a shell to initialize the database, and then you can type 'systemctl start honk' to start the honk server.\n'systemctl status honk' will help you identify problems that might arise.\nThe service launch the binary with the honk user and group.\n\n"
+ printf "\n\n${_BOLD}VERY IMPORTANT${_STYLE_END}:\nType:\n\tsu -l honk -c \"honk init\"\nin a shell to initialize the database, and then you can type 'systemctl start honk' to start the honk server.\n'systemctl status honk' will help you identify problems that might arise.\nThe service launch the binary with the 'honk' user.\n\n"
}
post_remove() {