Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-pterodactyl-legacy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-pterodactyl-legacy
Commits
46424271
Commit
46424271
authored
Aug 12, 2017
by
Cameron Carney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated cron; clearing cache and optimizing on startServer
parent
2d133b84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
manifest/entrypoint.sh
manifest/entrypoint.sh
+10
-7
manifest/etc/crontabs/nginx
manifest/etc/crontabs/nginx
+0
-0
No files found.
manifest/entrypoint.sh
View file @
46424271
...
...
@@ -24,8 +24,8 @@ function init {
rm
-rf
bootstrap/cache
ln
-s
/data/cache bootstrap/cache
rm
.env
-rf
ln
-s
"/data/pterodactyl.conf"
.env
rm
-rf
.env
ln
-s
/data/pterodactyl.conf
.env
}
# Runs the initial configuration on every startup
...
...
@@ -35,6 +35,7 @@ function startServer {
if
[
!
-e
"/data/pterodactyl.conf"
]
;
then
echo
"Running first time setup..."
# Generate base template
touch
/data/pterodactyl.conf
echo
"##"
>
/data/pterodactyl.conf
echo
"# Generated on:"
$(
date
+
"%B %d %Y, %H:%M:%S"
)
>>
/data/pterodactyl.conf
...
...
@@ -49,8 +50,8 @@ function startServer {
sleep
5
# Clean out everything
php artisan config:cache
php artisan optimize
php artisan config:cache
-q
php artisan optimize
-q
echo
""
echo
"Generating key..."
...
...
@@ -62,11 +63,13 @@ function startServer {
sleep
1
php artisan migrate
--force
php artisan db:seed
--force
php artisan config:cache
php artisan optimize
fi
# Clear config cache and optimize on every startup
php artisan config:cache
-q
php artisan optimize
-q
# Allows Users to give MySQL/cache sometime to start up.
if
[[
"
${
STARTUP_TIMEOUT
}
"
-gt
"0"
]]
;
then
echo
"Starting Pterodactyl
${
PANEL_VERSION
}
in
${
STARTUP_TIMEOUT
}
seconds..."
sleep
${
STARTUP_TIMEOUT
}
...
...
manifest/etc/crontabs/
root
→
manifest/etc/crontabs/
nginx
View file @
46424271
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment