1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Fix running logged_server_setup

This commit is contained in:
Mo 2022-05-10 01:26:58 +02:00
parent a15d92061d
commit f8665c410a

View file

@ -1,6 +1,5 @@
from ..terminal_utils import run
from .logged_server_setup import __file__ as logged_server_setup_script
from .shared import LOGS_DIR
from .shared import LOGS_DIR, REPO_DIR
def main():
@ -11,7 +10,10 @@ def main():
log_file = LOGS_DIR / "server_setup.log"
# Start actual server setup script with logging
run(f"python3 -u {logged_server_setup_script} | tee {log_file}")
run(
f"python3 -u -m advlabdb.scripts.setup.logged_server_setup | tee {log_file}",
cwd=REPO_DIR,
)
if __name__ == "__main__":