virtual-machines: don't copy configs (not needed)
parent
0380ea00f3
commit
c1f1380ec3
19
copy-files
19
copy-files
|
@ -37,25 +37,6 @@ for repo in ~/.vim/pack/*/*/*
|
|||
popd
|
||||
end | sort > vim/package_repos
|
||||
|
||||
# copy virtual machine configurations
|
||||
function copyvmfile
|
||||
set dir $argv[1]
|
||||
set fna $argv[2]
|
||||
|
||||
set file "$dir/$fna"
|
||||
set dirn "virtual-machines/"(basename "$dir")
|
||||
|
||||
if test -f "$file"
|
||||
mkdir -p "$dirn"
|
||||
cp "$file" "$dirn/$fna"
|
||||
end
|
||||
end
|
||||
|
||||
for dir in /mnt/s/vm/*
|
||||
copyvmfile $dir run
|
||||
copyvmfile $dir config
|
||||
end
|
||||
|
||||
# erase passwords
|
||||
sed -i 's/password>.*<\//password>password removed<\//g' network/icecast.xml
|
||||
sed -i 's/password\(\s*\)".*"/password\1"password removed"/g' network/mpd.conf
|
||||
|
|
Loading…
Reference in New Issue