Refactor bash
This commit is contained in:
1
bash/memlist
Normal file
1
bash/memlist
Normal file
@@ -0,0 +1 @@
|
||||
antonkaretnikov alexanderboliubysh dorjisandakov sergeymoskalenko katerinenikitina kirillsavchenko nikitamochalov danilreutov anastasiatsygankova egorkaikov stepanyankov daniilivlev mariaborzykh irinakatalanina mariagerasimenko evgeniatroshinovskaya marinerusskikh vsevolodignatenko konstantinbekbauov egorparkhomenko danilmatveyev
|
||||
10
bash/vmcloning-init
Normal file
10
bash/vmcloning-init
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
prefix="hosting_"
|
||||
postfix="_vm"
|
||||
|
||||
for var in $(cat memlist)
|
||||
do
|
||||
name=$prefix$var$postfix
|
||||
virt-clone --original generic_hosting --name $name --auto-clone
|
||||
done
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
prefix="hosting_"
|
||||
vmlist="antonkaretnikov alexanderboliubysh dorjisandakov sergeymoskalenko katerinenikitina kirillsavchenko nikitamochalov danilreutov anastasiatsygankova egorkaikov stepanyankov daniilivlev mariaborzykh irinakatalanina mariagerasimenko evgeniatroshinovskaya marinerusskikh vsevolodignatenko konstantinbekbauov egorparkhomenko danilmatveyev"
|
||||
postfix="_vm"
|
||||
|
||||
for var in $vmlist
|
||||
do
|
||||
name=$prefix$var$postfix
|
||||
virt-clone --original generic_hosting --name $name --auto-clone
|
||||
done
|
||||
@@ -1,10 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
prefix="hosting_"
|
||||
vmlist="antonkaretnikov alexanderboliubysh dorjisandakov sergeymoskalenko katerinenikitina kirillsavchenko nikitamochalov danilreutov anastasiatsygankova egorkaikov stepanyankov daniilivlev mariaborzykh irinakatalanina mariagerasimenko evgeniatroshinovskaya marinerusskikh vsevolodignatenko konstantinbekbauov egorparkhomenko danilmatveyev"
|
||||
postfix="_vm"
|
||||
|
||||
for var in $vmlist
|
||||
for var in $(cat memlist)
|
||||
do
|
||||
name=$prefix$var$postfix
|
||||
virsh undefine $name
|
||||
|
||||
Reference in New Issue
Block a user