Commit 0d418f16 authored by Cameron Carney's avatar Cameron Carney

moved first time setup to startServer

parent 50d5741b
......@@ -25,6 +25,14 @@ function init {
rm .env -rf
ln -s "${CONFIG_FILE}" .env
}
# Runs the initial configuration on every startup
function startServer {
if [[ -z "${APP_URL}" ]]; then
echo "Missing environment variable 'APP_URL'! Please resolve it now and start the container back up..."
exit 1;
fi
# Initial setup
if [ ! -e "${CONFIG_FILE}" ]; then
......@@ -52,14 +60,6 @@ function init {
php artisan config:cache
php artisan optimize
fi
}
# Runs the initial configuration on every startup
function startServer {
if [[ -z "${APP_URL}" ]]; then
echo "Missing environment variable 'APP_URL'! Please resolve it now and start the container back up..."
exit 1;
fi
if [[ "${STARTUP_TIMEOUT}" -gt "0" ]]; then
echo "Starting Pterodactyl ${PANEL_VERSION} in ${STARTUP_TIMEOUT} seconds..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment