ubuntu deadsneaks
This commit is contained in:
@@ -188,7 +188,7 @@ def comment_x_served_by_step(path="/etc/angie/conf.d/include/proxy.conf"):
|
||||
Path(tmp).write_text(out)
|
||||
shutil.copymode(p, tmp)
|
||||
os.replace(tmp, p)
|
||||
print(f"✔ Hide X-Server-by header | backup: {backup}")
|
||||
print(f"✔ Hide X-Served-by header | backup: {backup}")
|
||||
return count
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ def setup_certbot_venv(venv_dir: Path = Path("/opt/certbot")):
|
||||
# --- Debian pyenv
|
||||
PYENV_ROOT = Path("/opt/npm/.pyenv")
|
||||
PYENV_OWNER = "npm"
|
||||
PYTHON_VERSION = "3.11"
|
||||
PYTHON_VERSION = "3.11.14"
|
||||
PYENV_BIN_CANDIDATES = ["pyenv", "/usr/bin/pyenv", "/usr/lib/pyenv/bin/pyenv"]
|
||||
|
||||
# --- Ubuntu: PPA deadsnakes + venv ---
|
||||
@@ -278,7 +278,7 @@ def setup_certbot_venv(venv_dir: Path = Path("/opt/certbot")):
|
||||
|
||||
cb_ver = run_out([str(certbot_path), "--version"], check=False) or ""
|
||||
pip_ver = run_out([str(pip_path), "--version"], check=False) or ""
|
||||
print(f"Certbot: {cb_ver.strip()} | Pip: {pip_ver.strip()}")
|
||||
print(f"✔ Certbot: {cb_ver.strip()} | Pip: {pip_ver.strip()}")
|
||||
return
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user