2021-07-06 09:19:10 +00:00
|
|
|
# shellcheck disable=SC2034,SC2145
|
|
|
|
|
2021-09-03 07:05:32 +00:00
|
|
|
export NGINX_CONFIG_VERSION=v3
|
2021-11-30 10:36:23 +00:00
|
|
|
export APP_ENTRYPOINT_VERSION=v4
|
2021-06-01 07:34:45 +00:00
|
|
|
|
|
|
|
sub_npm() {
|
|
|
|
abra__service_="app"
|
|
|
|
|
2021-07-06 09:19:10 +00:00
|
|
|
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() {
|
2021-07-06 09:19:10 +00:00
|
|
|
sub_npm prune-storage
|
|
|
|
unsilence
|
|
|
|
success "Storage pruned - don't forget to restart your Peertube instance!"
|
|
|
|
}
|
2021-06-01 07:34:45 +00:00
|
|
|
|
2021-07-06 09:19:10 +00:00
|
|
|
sub_regen_thumb() {
|
|
|
|
sub_npm regenerate-thumbnails
|
2021-06-01 07:34:45 +00:00
|
|
|
unsilence
|
|
|
|
}
|