Autocreate our encryption key when container starts if it isnt already set
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 31s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m23s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m37s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 31s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m23s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m37s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
This commit is contained in:
@@ -50,10 +50,11 @@ fi
|
||||
if [ -r artisan -a -e ${php}/.env ]; then
|
||||
echo "* Laravel Setup..."
|
||||
mp=$(mp ${php})
|
||||
echo " - [${php}] is a mount point [${mp}]"
|
||||
|
||||
# Only adjust perms if this is an external mountpoint
|
||||
if [ -n "${FORCE_PERMS}" -o ${mp} -eq 0 ]; then
|
||||
echo " - ${mp} is an external mount point"
|
||||
|
||||
if [ -n "${FORCE_PERMS}" -o "${env}" != "local" -a -z "${SKIP_PERM}" ]; then
|
||||
echo " - Setting Permissions..."
|
||||
# Make sure our permissions are appropraite
|
||||
@@ -96,6 +97,12 @@ if [ -r artisan -a -e ${php}/.env ]; then
|
||||
[ -n "${FORCE_PERMS}" -o "${env}" != "local" -a -z "${SKIP_PERM}" ] && [ ${mp} -eq 0 ] && chmod g-w ${php}
|
||||
fi
|
||||
|
||||
# Generate our Encryption Key
|
||||
[ -z ${BUILD} ] && [ -z ${APP_KEY} ] \
|
||||
&& grep -qe '^APP_KEY=$' .env \
|
||||
&& echo ' + Encryption Key auto created, replace with with "artisan key:generate --force"' \
|
||||
&& ./artisan key:generate
|
||||
|
||||
# We only check for non mount points, in case this container has the app inside
|
||||
mp=$(mp ${php})
|
||||
if [ ${mp} -eq 1 ]; then
|
||||
|
Reference in New Issue
Block a user