mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fix/startup-sh (#9586)
* fix: update docker/startup.sh broken after merging hotfixs/2fa_qr * fix: Typo in Dockerfile.alpine
This commit is contained in:
parent
4030789786
commit
19766a0a72
|
@ -48,18 +48,14 @@ then
|
||||||
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
|
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
||||||
if [ ! -f "/var/www/html/database/migrations/*create_oauth*" ]
|
if [ ! -f "/var/www/html/database/migrations/*create_oauth*" ]
|
||||||
then
|
then
|
||||||
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec supervisord -c /supervisord.conf
|
|
||||||
|
|
||||||
php artisan migrate --force
|
php artisan migrate --force
|
||||||
php artisan config:clear
|
php artisan config:clear
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
|
|
||||||
. /etc/apache2/envvars
|
exec supervisord -c /supervisord.conf
|
||||||
exec apache2 -DNO_DETACH < /dev/null
|
|
||||||
|
|
Loading…
Reference in a new issue