summaryrefslogtreecommitdiff
path: root/others/vm3/vm.sh
diff options
context:
space:
mode:
authorhc <hc@email.ch>2025-01-02 09:26:32 +0800
committerhc <hc@email.ch>2025-01-02 09:26:32 +0800
commitc33f0979f0312e7a6d43645aa0a5d5b1481751f5 (patch)
tree49bd07cf9b6f02572586d22f3794da007bf794d1 /others/vm3/vm.sh
parent181bc10748cd9162e85f16722d6c83ff04a2d39d (diff)
udpated
Diffstat (limited to 'others/vm3/vm.sh')
-rwxr-xr-xothers/vm3/vm.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/others/vm3/vm.sh b/others/vm3/vm.sh
index c36b0ae..a043f89 100755
--- a/others/vm3/vm.sh
+++ b/others/vm3/vm.sh
@@ -1,5 +1,6 @@
#!/bin/bash
# Main entry point for VM management
+# also negotiator for executing scripts, so for storage
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root"
@@ -41,8 +42,8 @@ case $category in
shutdown)
$SCRIPT_DIR/compute/shutdown.sh "$@"
;;
- delete)
- $SCRIPT_DIR/compute/delete.sh "$@"
+ rm)
+ $SCRIPT_DIR/compute/rm.sh "$@"
;;
*)
echo -e "Available compute actions: \ncreate\nstart\nls\nshutdown\ndelete"