mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-10 16:34:22 +01:00
9
debian/scripts/init.sh
vendored
9
debian/scripts/init.sh
vendored
@@ -25,8 +25,11 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
|
||||
cp -r /tmp/public/* \
|
||||
/tmp/public/.htaccess \
|
||||
/tmp/public/.well-known \
|
||||
/var/www/html/public/ && \
|
||||
rm -rf /tmp/public/*
|
||||
/var/www/html/public/ &&
|
||||
rm -rf /tmp/public/.htaccess \
|
||||
/tmp/public/.well-known \
|
||||
/tmp/public/*
|
||||
|
||||
fi
|
||||
echo "Public Folder is up to date"
|
||||
|
||||
@@ -51,7 +54,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
|
||||
# If first IN run, it needs to be initialized
|
||||
if [ "$(runuser -u www-data -- php artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();')" = "1" ]; then
|
||||
echo "Running initialization..."
|
||||
|
||||
|
||||
runuser -u www-data -- php artisan db:seed --force
|
||||
|
||||
if [ -n "${IN_USER_EMAIL}" ] && [ -n "${IN_PASSWORD}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user