Add bash script to start containers on boot as python script is not executing

This commit is contained in:
2025-07-07 09:36:14 -04:00
parent d2965d4439
commit 0b843113b6
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
echo "Client Type: $1"
echo "Client IDs: $2"
client_string=$2
client_list=()
IFS=', ' read -a array <<< "${client_string}"; echo "${array[@]}"
for index in "${!array[@]}"
do
echo "Starting container: ${array[index]}"
lxc-start ${array[index]}
done