mirror of
https://asciireactor.com/otho/stashbox
synced 2024-11-22 08:25:07 +00:00
21 lines
498 B
YAML
21 lines
498 B
YAML
# 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
|