Update switch_from_VED_to_VE.sh
This commit is contained in:
parent
dae8178bf6
commit
8eee34b01f
@ -95,14 +95,21 @@ function remove_dev_tag() {
|
|||||||
|
|
||||||
header_info
|
header_info
|
||||||
echo "Searching for containers with 'community-script-dev' tag..."
|
echo "Searching for containers with 'community-script-dev' tag..."
|
||||||
|
|
||||||
|
found=0
|
||||||
for container in $(pct list | awk '{if(NR>1) print $1}'); do
|
for container in $(pct list | awk '{if(NR>1) print $1}'); do
|
||||||
tags=$(pct config "$container" | awk '/^tags/ {print $2}')
|
tags=$(pct config "$container" | awk '/^tags/ {print $2}')
|
||||||
if [[ "$tags" == *"community-script-dev"* ]]; then
|
if [[ "$tags" == *"community-script-dev"* ]]; then
|
||||||
|
found=1
|
||||||
update_container "$container"
|
update_container "$container"
|
||||||
update_motd "$container"
|
update_motd "$container"
|
||||||
remove_dev_tag "$container"
|
remove_dev_tag "$container"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [[ $found -eq 0 ]]; then
|
||||||
|
echo -e "${RD}[Error]${CL} No containers found with the tag 'community-script-dev'. Exiting script."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
header_info
|
header_info
|
||||||
echo -e "${GN}The process is complete.${CL}\n"
|
echo -e "${GN}The process is complete.${CL}\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user