setup.py work

This commit is contained in:
Zsolt Ero
2024-01-03 14:37:18 +01:00
parent efaebb1b3c
commit 1eb838edd0
7 changed files with 32 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ from ssh_lib.nginx import certbot, nginx
from ssh_lib.pkg_base import pkg_base, pkg_upgrade
from ssh_lib.planetiler import planetiler
from ssh_lib.rclone import rclone
from ssh_lib.utils import add_user, enable_sudo, put, reboot, sudo_cmd
from ssh_lib.utils import add_user, enable_sudo, put, put_dir, reboot, sudo_cmd
def prepare_shared(c):
@@ -100,6 +100,8 @@ def prepare_http_host(c):
upload_https_host_files(c)
upload_certificates(c)
c.sudo('/data/ofm/venv/bin/pip install -e /data/ofm/http_host/bin')
def upload_https_host_files(c):
c.sudo(f'mkdir -p {HTTP_HOST_BIN}')