This commit is contained in:
2025-02-09 08:55:01 +01:00
parent 1d631fec21
commit 7b69719f0e
38 changed files with 798 additions and 918 deletions

View File

@@ -16,32 +16,7 @@ pub fn (mut self Builder) install_zinit() ! {
touch /etc/environment
mkdir -p /etc/zinit/
'
// # Define the command to check if zinit is running
// CHECK_CMD="pgrep -x zinit"
// START_CMD="/sbin/zinit init --container"
// # Check if zinit is already running
// if ! \$CHECK_CMD > /dev/null; then
// echo "Zinit is not running. Starting it in a screen session..."
// # Check if the screen session already exists
// if screen -list | grep -q zinitscreen; then
// #echo "Screen session zinitscreen already exists. Attaching..."
// #screen -r zinitscreen
// else
// echo "Creating new screen session and starting zinit..."
// screen -dmS zinitscreen bash -c "/sbin/zinit init --container"
// fi
// else
// echo "Zinit is already running."
// fi
// zinit list
// '
)!
self.set_entrypoint('/sbin/zinit init --container')!
}