From bf385b9749b4428c864c1f808b6e1b69ce80345e Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Fri, 27 Jul 2018 11:50:28 +0200 Subject: [PATCH] Rename script without extension and make them executable --- README.md | 10 +++++----- add-vm.sh => add-vm | 0 kvmstats.sh => kvmstats | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename add-vm.sh => add-vm (100%) mode change 100644 => 100755 rename kvmstats.sh => kvmstats (100%) mode change 100644 => 100755 diff --git a/README.md b/README.md index 276dd5b..f57a82e 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,16 @@ This repository contain scripts for managing KVM hypervisors used with DRBD and It contains the following scripts. -- add-vm.sh: create DBRD volumes and virtual machines. -- kvmstats.sh: gives informations about defined virtual machines. +- add-vm: create DBRD volumes and virtual machines. +- kvmstats: gives informations about defined virtual machines. ## Install Copy the scripts to /usr/local/sbin: ~~~ -install -m 0755 add-vm.sh /usr/local/sbin/add-vm -install -m 0755 kvmstats.sh /usr/local/sbin/kvmstats +install -m 0755 add-vm /usr/local/sbin/add-vm +install -m 0755 kvmstats /usr/local/sbin/kvmstats ~~~ Edit configuration in /etc/evolinux/add-vm.cnf: @@ -23,7 +23,7 @@ masterKVMIP=192.168.0.X slaveKVMIP=192.168.0.Y ~~~ -Script add-vm.sh assume you have two LVM Volume Group named "ssd" and "hdd". +Script add-vm assume you have two LVM Volume Group named "ssd" and "hdd". You can override this by adding a Bash array in /etc/evolinux/add-vm.cnf, eg: diff --git a/add-vm.sh b/add-vm old mode 100644 new mode 100755 similarity index 100% rename from add-vm.sh rename to add-vm diff --git a/kvmstats.sh b/kvmstats old mode 100644 new mode 100755 similarity index 100% rename from kvmstats.sh rename to kvmstats