Commit d7eb5601 authored by Cameron Carney's avatar Cameron Carney

Updated pterodactyl.conf generation

parent 421997d4
...@@ -2,8 +2,7 @@ FROM alpine:3.6 ...@@ -2,8 +2,7 @@ FROM alpine:3.6
MAINTAINER Cameron Carney <ccarney16@live.com> MAINTAINER Cameron Carney <ccarney16@live.com>
ENV CONFIG_FILE=/data/pterodactyl.conf \ ENV STARTUP_TIMEOUT=5 \
STARTUP_TIMEOUT=5 \
PANEL_VERSION=v0.6.4 PANEL_VERSION=v0.6.4
WORKDIR /var/www/html WORKDIR /var/www/html
......
...@@ -32,10 +32,19 @@ function init { ...@@ -32,10 +32,19 @@ function init {
function startServer { function startServer {
# Initial setup # Initial setup
if [ ! -e "${CONFIG_FILE}" ]; then if [ ! -e "/data/pterodactyl.conf" ]; then
echo "Running first time setup..." echo "Running first time setup..."
cp -pr .env.example ${CONFIG_FILE} touch /data/pterodactyl.conf
echo "##" > /data/pterodactyl.conf
echo "# Generated on:" $(date +"%B %d %Y, %H:%M:%S") >> /data/pterodactyl.conf
echo "# This file was generated on first start and contains " >> /data/pterodactyl.conf
echo "# the key for sensitive information. All panel configuration " >> /data/pterodactyl.conf
echo "# can be done here using the normal method (NGINX not included!)," >> /data/pterodactyl.conf
echo "# or using Docker's environment variables parameter." >> /data/pterodactyl.conf
echo "##" >> /data/pterodactyl.conf
echo "" >> /data/pterodactyl.conf
echo "APP_KEY=SomeRandomString3232RandomString" >> /data/pterodactyl.conf
sleep 5 sleep 5
......
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