summaryrefslogtreecommitdiff
path: root/honk.install
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-05-11 22:43:24 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2021-05-11 22:46:53 +0100
commit74089cfe9303fc8a427b8727ce55ee20ced01e72 (patch)
treec2cc7353aa634922ab29c890f65fd7175027be3f /honk.install
parente09875f18e32f37001182170a3f4fb2fc1918e45 (diff)
downloadhonk_aur-74089cfe9303fc8a427b8727ce55ee20ced01e72.tar.gz
honk_aur-74089cfe9303fc8a427b8727ce55ee20ced01e72.zip
Add fixes suggested by kseistrup on the AUR
- strip option since not debugging - zipman for manpage gunzipping - go instead of gcc-go dependency - put binary in more standard places - install man pages in /usr/share/man sections
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() {