forked from jeanGaston/RF-AD
15 lines
354 B
Python
15 lines
354 B
Python
from ldapSync import schedule_sync_ldap_to_database
|
|
from database import setup_database, print_database_content
|
|
from Webserver import run_webServer_thread
|
|
from env import DBFILE
|
|
import schedule
|
|
|
|
|
|
setup_database(DBFILE)
|
|
# print_database_content(DBFILE)
|
|
run_webServer_thread()
|
|
schedule_sync_ldap_to_database(DBFILE)
|
|
|
|
while True:
|
|
schedule.run_pending()
|