Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
3e92d0f4
Commit
3e92d0f4
authored
May 25, 2020
by
Dominik Hebeler
Browse files
Fixed useragents.sqlite in docker-compose file
parent
bb5f1cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
init.sh
View file @
3e92d0f4
...
...
@@ -2,7 +2,6 @@
# This commands will help initialize data for docker-compose setup
# Its supposed to run in a php docker image
docker-php-ext-install pdo pdo_mysql
if
[
!
-f
"/data/.env"
]
;
then
cp
/data/.env.example /data/.env
...
...
@@ -16,10 +15,14 @@ if [ ! -d "/data/storage/logs/metager" ]; then
mkdir
-p
/data/storage/logs/metager
fi
touch
/data/database/useragents.sqlite
cp
/data/database/useragents.sqlite.example
/data/database/useragents.sqlite
chmod
-R
go+w storage bootstrap/cache
docker-php-ext-install pdo pdo_mysql
php artisan
wait
:db
php artisan migrate
rm
/data/database/useragents.sqlite
touch
/data/database/useragents.sqlite
php artisan migrate:fresh
php artisan db:seed
\ No newline at end of file
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