mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Fix running logged_server_setup
This commit is contained in:
parent
a15d92061d
commit
f8665c410a
1 changed files with 5 additions and 3 deletions
|
@ -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__":
|
||||
|
|
Loading…
Reference in a new issue