Rename script without extension and make them executable

This commit is contained in:
Victor LABORIE 2018-07-27 11:50:28 +02:00
parent 0fcf624576
commit bf385b9749
3 changed files with 5 additions and 5 deletions

View file

@ -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:

0
add-vm.sh → add-vm Normal file → Executable file
View file

0
kvmstats.sh → kvmstats Normal file → Executable file
View file