peertube/abra.sh

25 lines
503 B
Bash
Raw Normal View History

2021-06-24 15:43:25 +00:00
export NGINX_CONFIG_VERSION=v2
2021-05-05 15:28:02 +00:00
export APP_ENTRYPOINT_VERSION=v1
2021-06-01 07:34:45 +00:00
sub_npm() {
2021-06-04 06:40:18 +00:00
export NODE_CONFIG_DIR=/config
2021-06-01 07:34:45 +00:00
export NODE_ENV=production
export PEERTUBE_DB_PASSWORD=$(cat /run/secrets/db_password)
# shellcheck disable=SC2034
abra__service_="app"
sub_app_run npm run "$@"
}
sub_prune() {
info "Pruning storage"
info "See https://docs.joinpeertube.org/maintain-tools?id=prune-storagejs for more"
silence
sub_npm "prune-storage"
unsilence
success "Storage pruned!"
}