SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
LXC: minor fixes and renaming
Markus Heisera1f5f2ced805
diff --git a/utils/lxc.sh b/utils/lxc.shindex 0c198babc..3d627e8b7 100755--- a/utils/lxc.sh+++ b/utils/lxc.sh@@ -55,14 +55,14 @@ usage() {usage::$(basename "$0") build [containers]- $(basename "$0") delete [containers|subordinate]+ $(basename "$0") remove [containers|subordinate]$(basename "$0") [start|stop] [containers]$(basename "$0") inspect [info|config]$(basename "$0") cmd ...-build / delete- :containers: build and delete all LXC containers-add / delete+build / remove+ :containers: build and remove all LXC containers+add / remove:subordinate: lxd permission to map ${HOST_USER}'s user/group id throughstart/stop:containers: start/stop of all containers@@ -86,7 +86,7 @@ lxd_info() {LXD is needed, to install run::snap install lxd- lxc init --auto+ lxd init --autoEOF}@@ -112,10 +112,10 @@ main() {containers) build_instances ;;*) usage "$_usage"; exit 42;;esac ;;- delete)+ remove)sudo_or_exitcase $2 in- containers) delete_instances ;;+ containers) remove_instances ;;subordinate) echo; del_subordinate_ids ;;*) usage "$_usage"; exit 42;;esac ;;@@ -173,8 +173,8 @@ build_instances() {lxc list "$HOST_PREFIX"}-delete_instances() {- rst_title "Delete LXC instances"+remove_instances() {+ rst_title "Remove LXC instances"echo -en "\\nLXC containers(s)::\\n\\n ${LOCAL_IMAGES[*]}\\n" | $FMTif ask_yn "Do you really want to delete all images"; thenlxc_delete_containers@@ -219,12 +219,14 @@ lxc_cmd() {}lxc_init_containers() {- for i in "${LOCAL_IMAGES[@]}"; do- if lxc info "$i" &>/dev/null; then+ local shortname+ for ((i=0; i<${#TEST_IMAGES[@]}; i+=2)); do+ shortname="${TEST_IMAGES[i+1]}"+ if lxc info "${HOST_PREFIX}-${shortname}" &>/dev/null; theninfo_msg "conatiner '$i' already exists"elseinfo_msg "create conatiner instance: $i"- lxc init "local:$i" "$i"+ lxc init "local:${shortname}" "${HOST_PREFIX}-${shortname}"fidone}