From 4ed726b9b1ce934cc57ce932cc7c5f3c8bbbae19 Mon Sep 17 00:00:00 2001 From: "Lockszmith (runtipi@kateryna)" Date: Fri, 13 Dec 2024 10:19:56 -0500 Subject: [PATCH] added `runtipictl shell` --- _bin/runtipictl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/_bin/runtipictl b/_bin/runtipictl index 102d0ef..6c871ab 100755 --- a/_bin/runtipictl +++ b/_bin/runtipictl @@ -6,6 +6,12 @@ jlmkr () { JAIL_UID=${JAIL_UID:-${UID}} +jlmkr-shell() { + if jlmkr exec runtipi true; then + jlmkr shell --uid "${JAIL_UID}" runtipi + fi +} + jlmkr-exec () { local set_x=" set -x; pwd; id; " [ -z "$QUIET" ] || set_x="" @@ -83,6 +89,9 @@ case "${1}" in _ERROR_MSG="ERROR: failed to invoke a command inside the runtipi jail and can't start the jail." \ runtipi-cli start --env-file user-config/.env.local --no-permissions ;; + shell) + jlmkr-shell + ;; exec) jlmkr-exec "${@:2}" ;; @@ -124,6 +133,7 @@ case "${1}" in "" "" "" \ "misc." "" ""\ "" "exec" "execute within the shell, START_DIR env applies" \ + "" "shell" "enter an insteractive shell" \ "" "" "" \ "" "setup" "setup runtipictl in user's .local/bin dir"