Add bash script to start containers on boot as python script is not executing
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user