You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/bash
function defaults { : ${DEVPI_SERVERDIR="/data/server"} : ${DEVPI_CLIENTDIR="/data/client"}
echo "DEVPI_SERVERDIR is ${DEVPI_SERVERDIR}" echo "DEVPI_CLIENTDIR is ${DEVPI_CLIENTDIR}"
export DEVPI_SERVERDIR DEVPI_CLIENTDIR}
function initialise_devpi { echo "[RUN]: Initialise devpi-server" devpi-server --restrict-modify root --start --host 127.0.0.1 --port 3141 --init devpi-server --status devpi use http://localhost:3141 devpi login root --password='' devpi user -m root password="${DEVPI_PASSWORD}" devpi index -y -c public pypi_whitelist='*' devpi-server --stop devpi-server --status}
defaults
if [ "$1" = 'devpi' ]; then if [ ! -f $DEVPI_SERVERDIR/.serverversion ]; then initialise_devpi fi
echo "[RUN]: Launching devpi-server" exec devpi-server --restrict-modify root --host 0.0.0.0 --port 3141fi
echo "[RUN]: Builtin command not provided [devpi]"echo "[RUN]: $@"
exec "$@"
|