You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -exuo pipefail
|
|
|
|
. make/lib.sh
|
|
|
|
|
|
|
|
gimli_only
|
|
|
|
only_in_directory "$TESTWEB"
|
|
|
|
|
|
|
|
CURRENT_BRANCH="$(git branch --show-current)"
|
|
|
|
BRANCH="${1:-$CURRENT_BRANCH}"
|
|
|
|
|
|
|
|
safe_checkout_branch "$BRANCH"
|
|
|
|
|
|
|
|
# Teď máme správnou větev, jdeme vše nainstalovat
|
|
|
|
install_everything
|
|
|
|
systemctl --user restart mamweb-test.service
|
|
|
|
|
|
|
|
# Přihlášení
|
|
|
|
htpasswd -bc .htpasswd test lisakjelisak
|
|
|
|
|
|
|
|
# Build dokumentace
|
|
|
|
ensure_venv
|
|
|
|
(
|
|
|
|
cd docs
|
|
|
|
make html
|
|
|
|
)
|
|
|
|
# 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
|