peertube/abra.sh

27 lines
526 B
Bash
Raw Normal View History

# shellcheck disable=SC2034,SC2145
2021-06-24 15:43:25 +00:00
export NGINX_CONFIG_VERSION=v2
export APP_ENTRYPOINT_VERSION=v2
2021-06-01 07:34:45 +00:00
sub_npm() {
abra__service_="app"
ARGS="-e NODE_CONFIG_DIR=/config -e NODE_ENV=production"
sub_app_run bash -c "\
export PEERTUBE_DB_PASSWORD=\$(cat /run/secrets/db_password) && \
npm run \"$@\" \
"
2021-06-01 07:34:45 +00:00
}
sub_prune() {
sub_npm prune-storage
unsilence
success "Storage pruned - don't forget to restart your Peertube instance!"
}
2021-06-01 07:34:45 +00:00
sub_regen_thumb() {
sub_npm regenerate-thumbnails
2021-06-01 07:34:45 +00:00
unsilence
}