# 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