mirror of
https://github.com/pypiserver/pypiserver
synced 2025-02-22 19:19:37 +01:00
16 lines
280 B
Bash
16 lines
280 B
Bash
#!/bin/ash
|
|
|
|
set -euo pipefail
|
|
|
|
chown -R pypiserver:pypiserver /data
|
|
|
|
if [ "$@" = "" ]; then
|
|
# default CMD
|
|
echo "Set default option '/data/packages'"
|
|
set -- " /data/packages"
|
|
else
|
|
#
|
|
echo "Using custom CMD: $@"
|
|
fi
|
|
exec gosu pypiserver pypi-server -p "$PORT" $@
|