Combine and consolidate
This commit is contained in:
parent
a93a73ef4d
commit
0667b61abf
1 changed files with 1 additions and 7 deletions
|
@ -15,11 +15,8 @@ done
|
||||||
#sed -i s/DB_USERNAME=pterodactyl/DB_USERNAME=$DB_USERNAME/g /app/.env
|
#sed -i s/DB_USERNAME=pterodactyl/DB_USERNAME=$DB_USERNAME/g /app/.env
|
||||||
#sed -i s/DB_PASSWORD=/DB_PASSWORD=$DB_PASSWORD/g /app/.env
|
#sed -i s/DB_PASSWORD=/DB_PASSWORD=$DB_PASSWORD/g /app/.env
|
||||||
|
|
||||||
#echo "1"
|
|
||||||
#chown -R www-data:www-data .
|
#chown -R www-data:www-data .
|
||||||
#echo "2"
|
|
||||||
chmod -R 777 storage/* bootstrap/cache /var/run/php /app/.env
|
chmod -R 777 storage/* bootstrap/cache /var/run/php /app/.env
|
||||||
echo "3"
|
|
||||||
|
|
||||||
if [ "$(cat .env)" == "" ]; then
|
if [ "$(cat .env)" == "" ]; then
|
||||||
cat /app/.env.example > /app/.env
|
cat /app/.env.example > /app/.env
|
||||||
|
@ -30,9 +27,6 @@ if [ "$(cat .env | grep APP_KEY)" == "APP_KEY=" ]; then
|
||||||
php artisan key:generate --force
|
php artisan key:generate --force
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "4"
|
php artisan migrate --seed --force
|
||||||
php artisan migrate --force
|
|
||||||
echo "5"
|
|
||||||
php artisan db:seed --force
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
nginx -g 'pid /tmp/nginx.pid; daemon off;'
|
nginx -g 'pid /tmp/nginx.pid; daemon off;'
|
||||||
|
|
Loading…
Reference in a new issue