mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-14 21:40:43 +00:00
20 lines
531 B
Python
20 lines
531 B
Python
# No relative imports allowed in this file to be able to run server_setup.py without packages
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).parent.parent.absolute()))
|
|
from terminal_utils import run
|
|
|
|
LOCAL_BIN = Path("/home/admin/.local/bin/")
|
|
LOGS_DIR = Path("/var/log/advlabdb")
|
|
REPO_DIR = Path("/home/admin/advlabdb")
|
|
|
|
|
|
def install_latest_pipx():
|
|
run("pip install --user --upgrade pipx")
|
|
|
|
|
|
def poetry_update():
|
|
poetry_bin = LOCAL_BIN / "poetry"
|
|
run(f"{poetry_bin} update", cwd=REPO_DIR)
|