aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-installer-sulix/devel
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 23:32:47 +0100
committerM.Gergo2019-03-08 23:32:47 +0100
commitc0f79397dd75e03a7a40303f82926e8187697d07 (patch)
treee945a10ef6479e0f8720ad9cd4947b6a85b78d6e /mayor-orig/mayor-installer-sulix/devel
parentf51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (diff)
downloadmayor-c0f79397dd75e03a7a40303f82926e8187697d07.tar.gz
mayor-c0f79397dd75e03a7a40303f82926e8187697d07.zip
Rev: 4455
Diffstat (limited to 'mayor-orig/mayor-installer-sulix/devel')
-rw-r--r--mayor-orig/mayor-installer-sulix/devel/copy-sulixconfig.sh4
-rw-r--r--mayor-orig/mayor-installer-sulix/devel/example2sulix.sh8
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