diff options
Diffstat (limited to 'scripts/p7s')
| -rw-r--r-- | scripts/p7s/distrobox.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/p7s/distrobox.py b/scripts/p7s/distrobox.py deleted file mode 100644 index 787f05ef..00000000 --- a/scripts/p7s/distrobox.py +++ /dev/null @@ -1,22 +0,0 @@ -import os -import subprocess - - -IMAGE="quay.io/alexpdp7/workstation:latest" -NAME="workstation-latest" - - -def create(): - subprocess.run(["distrobox", "create", "-i", IMAGE], check=True) - - -def enter(): - os.execvp("distrobox", ["distrobox", "enter", NAME]) - - -def update(): - print("If this fails on ws, systemctl --user stop soju bitlbee // systemctl --user start soju bitlbee") - subprocess.run(["distrobox", "rm", "-f", NAME], check=True) - subprocess.run(["podman", "rmi", IMAGE], check=True) - subprocess.run(["podman", "pull", IMAGE], check=True) - subprocess.run(["distrobox", "create", "-i", IMAGE], check=True) |
