bookbrainz/bookbrainz-site

View on GitHub
docker/webservice-test/rc.local

Summary

Maintainability
Test Coverage
#!/bin/bash

# BookBrainz rc.local
# Enables a specific runit service depending on what the
# CONTAINER_NAME variable is set to


if [ "${CONTAINER_NAME}" = "bookbrainz-webservice-test" ]
then
    rm -f /etc/service/webserver/down
    exit 0
fi

echo "init script has no clue which service to start. Set env var CONTAINER_NAME"
exit 1