Commit 99498fb4 authored by Christian Pointner's avatar Christian Pointner
Browse files

add initdb helper script

parent 8742a9e3
Pipeline #565 passed with stage
in 1 minute and 16 seconds
......@@ -79,7 +79,7 @@ sudo apt install \
```bash
sudo pip3 install \
Flask Flask-SQLAlchemy \
mysqlclient redis simplejson \
mysqlclient redis \
mutagen validators
```
......
......@@ -8,6 +8,11 @@ db_name="engine"
db_pass="engine"
db_host="localhost"
[redis]
redis_host="localhost"
redis_port=6379
redis_db=0
[monitoring]
# how often should i check the diskspace. defaults to 600s = 10m
diskspace_check_interval=20
......
#!/usr/bin/python3
#
# engine
#
# Playout Daemon for autoradio project
#
#
# Copyright (C) 2017-2018 Gottfried Gaisbauer <gottfried.gaisbauer@servus.at>
#
# This file is part of engine.
#
# engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# engine is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with engine. If not, see <http://www.gnu.org/licenses/>.
#
from libraries.database.broadcasts import AuraDatabaseModel
AuraDatabaseModel.recreate_db(systemexit=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment