Stashbox/Taskfile.yaml

21 lines
498 B
YAML
Raw Normal View History

2023-01-01 07:50:03 +00:00
# https://taskfile.dev
version: '3'
vars:
INDEX_ROOT: /data
# This is hardcoded into 2 additional files.
DOC_ROOT: /data/documents/web/stashbox
tasks:
update-doc:
cmds:
- cp root_htaccess {{.INDEX_ROOT}}/.htaccess
- cp -a index-theme {{.DOC_ROOT}}
silent: false
update-conf:
cmds:
- cp /usr/local/etc/apache24/httpd.conf ./.httpd-$(date +%s).conf.backup
- cp httpd.conf /usr/local/etc/apache24/httpd.conf
- /usr/local/etc/rc.d/apache24 reload