diff options
Diffstat (limited to 'mayor-orig/mayor-installer-sulix/devel')
-rw-r--r-- | mayor-orig/mayor-installer-sulix/devel/copy-sulixconfig.sh | 4 | ||||
-rw-r--r-- | mayor-orig/mayor-installer-sulix/devel/example2sulix.sh | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mayor-orig/mayor-installer-sulix/devel/copy-sulixconfig.sh b/mayor-orig/mayor-installer-sulix/devel/copy-sulixconfig.sh new file mode 100644 index 00000000..3b227646 --- /dev/null +++ b/mayor-orig/mayor-installer-sulix/devel/copy-sulixconfig.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp -r /root/mayor/sulix/* /srv/mayor + diff --git a/mayor-orig/mayor-installer-sulix/devel/example2sulix.sh b/mayor-orig/mayor-installer-sulix/devel/example2sulix.sh new file mode 100644 index 00000000..6f2ceac2 --- /dev/null +++ b/mayor-orig/mayor-installer-sulix/devel/example2sulix.sh @@ -0,0 +1,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 |