From 5bc3ad1409220bd5b6edcfd73e575035d36383b8 Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Thu, 16 May 2024 20:09:54 +0200 Subject: [PATCH] Add sandbox --- {home => sandbox}/etc/containers/systemd/act-runner.container | 0 {home => sandbox}/etc/containers/systemd/act-runner.network | 0 {home => sandbox}/etc/containers/systemd/act-runner.volume | 0 .../etc/containers/systemd/code-server-projects.volume | 0 .../etc/containers/systemd/code-server-settings.volume | 0 .../etc/containers/systemd/code-server-ssh.volume | 0 .../etc/containers/systemd/code-server.container | 0 .../etc/containers/systemd/podman-container.container | 0 {home => sandbox}/etc/containers/systemd/podman-run.volume | 0 .../etc/containers/systemd/podman-storage.volume | 0 setup-sandbox.sh | 4 ++++ setup.sh | 2 ++ 12 files changed, 6 insertions(+) rename {home => sandbox}/etc/containers/systemd/act-runner.container (100%) rename {home => sandbox}/etc/containers/systemd/act-runner.network (100%) rename {home => sandbox}/etc/containers/systemd/act-runner.volume (100%) rename {home => sandbox}/etc/containers/systemd/code-server-projects.volume (100%) rename {home => sandbox}/etc/containers/systemd/code-server-settings.volume (100%) rename {home => sandbox}/etc/containers/systemd/code-server-ssh.volume (100%) rename {home => sandbox}/etc/containers/systemd/code-server.container (100%) rename {home => sandbox}/etc/containers/systemd/podman-container.container (100%) rename {home => sandbox}/etc/containers/systemd/podman-run.volume (100%) rename {home => sandbox}/etc/containers/systemd/podman-storage.volume (100%) create mode 100644 setup-sandbox.sh diff --git a/home/etc/containers/systemd/act-runner.container b/sandbox/etc/containers/systemd/act-runner.container similarity index 100% rename from home/etc/containers/systemd/act-runner.container rename to sandbox/etc/containers/systemd/act-runner.container diff --git a/home/etc/containers/systemd/act-runner.network b/sandbox/etc/containers/systemd/act-runner.network similarity index 100% rename from home/etc/containers/systemd/act-runner.network rename to sandbox/etc/containers/systemd/act-runner.network diff --git a/home/etc/containers/systemd/act-runner.volume b/sandbox/etc/containers/systemd/act-runner.volume similarity index 100% rename from home/etc/containers/systemd/act-runner.volume rename to sandbox/etc/containers/systemd/act-runner.volume diff --git a/home/etc/containers/systemd/code-server-projects.volume b/sandbox/etc/containers/systemd/code-server-projects.volume similarity index 100% rename from home/etc/containers/systemd/code-server-projects.volume rename to sandbox/etc/containers/systemd/code-server-projects.volume diff --git a/home/etc/containers/systemd/code-server-settings.volume b/sandbox/etc/containers/systemd/code-server-settings.volume similarity index 100% rename from home/etc/containers/systemd/code-server-settings.volume rename to sandbox/etc/containers/systemd/code-server-settings.volume diff --git a/home/etc/containers/systemd/code-server-ssh.volume b/sandbox/etc/containers/systemd/code-server-ssh.volume similarity index 100% rename from home/etc/containers/systemd/code-server-ssh.volume rename to sandbox/etc/containers/systemd/code-server-ssh.volume diff --git a/home/etc/containers/systemd/code-server.container b/sandbox/etc/containers/systemd/code-server.container similarity index 100% rename from home/etc/containers/systemd/code-server.container rename to sandbox/etc/containers/systemd/code-server.container diff --git a/home/etc/containers/systemd/podman-container.container b/sandbox/etc/containers/systemd/podman-container.container similarity index 100% rename from home/etc/containers/systemd/podman-container.container rename to sandbox/etc/containers/systemd/podman-container.container diff --git a/home/etc/containers/systemd/podman-run.volume b/sandbox/etc/containers/systemd/podman-run.volume similarity index 100% rename from home/etc/containers/systemd/podman-run.volume rename to sandbox/etc/containers/systemd/podman-run.volume diff --git a/home/etc/containers/systemd/podman-storage.volume b/sandbox/etc/containers/systemd/podman-storage.volume similarity index 100% rename from home/etc/containers/systemd/podman-storage.volume rename to sandbox/etc/containers/systemd/podman-storage.volume diff --git a/setup-sandbox.sh b/setup-sandbox.sh new file mode 100644 index 0000000..27229e4 --- /dev/null +++ b/setup-sandbox.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +cp -R sandbox/* / +sh setup-server.sh diff --git a/setup.sh b/setup.sh index e0f667f..c1ff9cb 100755 --- a/setup.sh +++ b/setup.sh @@ -20,6 +20,8 @@ elif [ -d /usr/lib/coreos ]; then sh setup-vps.sh elif [ "$1" = home ]; then sh setup-home.sh + elif [ "$1" = sandbox ]; then + sh setup-sandbox.sh fi elif [ -d /ostree ]; then sh setup-laptop.sh