diff options
Diffstat (limited to 'others/vm3/vm.sh')
| -rwxr-xr-x | others/vm3/vm.sh | 5 |
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 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # Main entry point for VM management | 2 | # Main entry point for VM management |
| 3 | # also negotiator for executing scripts, so for storage | ||
| 3 | 4 | ||
| 4 | if [ "$(id -u)" != "0" ]; then | 5 | if [ "$(id -u)" != "0" ]; then |
| 5 | echo "This script must be run as root" | 6 | echo "This script must be run as root" |
| @@ -41,8 +42,8 @@ case $category in | |||
| 41 | shutdown) | 42 | shutdown) |
| 42 | $SCRIPT_DIR/compute/shutdown.sh "$@" | 43 | $SCRIPT_DIR/compute/shutdown.sh "$@" |
| 43 | ;; | 44 | ;; |
| 44 | delete) | 45 | rm) |
| 45 | $SCRIPT_DIR/compute/delete.sh "$@" | 46 | $SCRIPT_DIR/compute/rm.sh "$@" |
| 46 | ;; | 47 | ;; |
| 47 | *) | 48 | *) |
| 48 | echo -e "Available compute actions: \ncreate\nstart\nls\nshutdown\ndelete" | 49 | echo -e "Available compute actions: \ncreate\nstart\nls\nshutdown\ndelete" |
