aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-installer-sulix/devel/example2sulix.sh
blob: 6f2ceac2a7621c478868121348157f358f7fdb54 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

for i in $(find /srv/mayor/ -name *.example -print | sed -e 's/.example//'); do 
	name=`basename $i`; 
	dir=$(echo $i | sed -e 's#/srv/mayor#/root/mayor/sulix#' -e "s/$name//"); 
	mkdir -p $dir; 
	cp $i.example $(echo $i | sed -e 's#/srv/mayor#/root/mayor/sulix#').sulix; 
done