done
}
+ function update-database() {
+ source /usr/local/bin/database;
+ idle-db-update-containers-desc;
+ }
+
if ! lxc profile show default | grep -q 'idle'; then
echo -e "${RED}LXD isn't initialized. You must run 'idle-lxd-init' firs${ENDCOLOR}";
exit 1;
else
contName=$1;
create-container $contName;
- fi
+ fi
+ echo "Updating database...";
+ update-database;
else
echo "idle-fetch-containers - fetch IDLE containers";
echo "IDLE Project @ 2023 morketsmerke.org";