2022-11-07 22:32:06 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -exuo pipefail
|
2022-11-14 23:16:19 +01:00
|
|
|
. make/lib.sh
|
|
|
|
|
2022-11-15 11:58:22 +01:00
|
|
|
gimli_only
|
|
|
|
only_in_directory "$TESTWEB"
|
2022-11-14 23:16:19 +01:00
|
|
|
|
|
|
|
CURRENT_BRANCH="$(git branch --show-current)"
|
|
|
|
BRANCH="${1:-$CURRENT_BRANCH}"
|
|
|
|
|
2022-11-20 04:40:03 +01:00
|
|
|
safe_checkout_branch "$BRANCH"
|
2022-11-14 23:16:19 +01:00
|
|
|
|
|
|
|
# Teď máme správnou větev, jdeme vše nainstalovat
|
|
|
|
install_everything
|
|
|
|
systemctl --user restart mamweb-test.service
|
2022-11-21 20:18:22 +01:00
|
|
|
|
2022-11-21 20:54:36 +01:00
|
|
|
# Přihlášení
|
|
|
|
htpasswd -bc .htpasswd test lisakjelisak
|
2022-11-21 20:59:14 +01:00
|
|
|
setfacl -m u:www-data:r .htpasswd
|
2022-11-21 20:54:36 +01:00
|
|
|
|
2022-11-21 20:18:22 +01:00
|
|
|
# Build dokumentace
|
|
|
|
ensure_venv
|
|
|
|
(
|
|
|
|
cd docs
|
|
|
|
make html
|
|
|
|
)
|
2022-11-21 20:40:43 +01:00
|
|
|
# Oprava práv k dokumentaci
|
|
|
|
setfacl -m u:www-data:x . docs docs/_build
|
|
|
|
setfacl -R -m u:www-data:rX docs/_build/html
|
|
|
|
setfacl -R -m default:u:www-data:rX docs/_build/html
|