bugfixes and updated go.mod

This commit is contained in:
ston1th 2019-05-15 22:52:27 +02:00
commit 6e317eb08b
300 changed files with 53136 additions and 9719 deletions

View file

@ -14,15 +14,17 @@ chmod 555 /etc/rc.d/gowiki
rcctl enable gowiki
rcctl set gowiki flags server -c /var/wiki/gowiki.conf
# user
useradd -m -b /var -s /sbin/nologin wiki
# user and group
mkdir /var/wiki
groupadd wiki
useradd -d /var/wiki -s /sbin/nologin -g wiki wiki
chown wiki:wiki /var/wiki
# config
cat <<EOF> /var/wiki/gowiki.conf
{
"data_dir": "/var/wiki",
"secret": "$(openssl rand -hex 32)",
"secure_cookie": true
"secret": "$(openssl rand -hex 32)"
}
EOF
chmod 640 /var/wiki/gowiki.conf