From e4ea33520c6dcb968f355a7008566f951ee88a90 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Tue, 11 May 2021 23:05:31 +0100 Subject: add fixes suggested by kseistrup --- honk.install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'honk.install') 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() { -- cgit v1.2.3-70-g09d2