1
0
Fork 0
pixelfed/contrib/docker/shared/lib.sh

14 lines
247 B
Bash

#!/bin/bash
set -e
function entrypoint_log() {
if [ -z "${ENTRYPOINT_QUIET_LOGS:-}" ]; then
echo "/docker-entrypoint.sh: $@"
fi
}
function as_www_user() {
su --preserve-environment www-data --shell /bin/bash --command "${*}"
}