From c0f79397dd75e03a7a40303f82926e8187697d07 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 23:32:47 +0100 Subject: Rev: 4455 --- mayor-orig/mayor-installer-sulix/devel/copy-sulixconfig.sh | 4 ++++ mayor-orig/mayor-installer-sulix/devel/example2sulix.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 mayor-orig/mayor-installer-sulix/devel/copy-sulixconfig.sh create mode 100644 mayor-orig/mayor-installer-sulix/devel/example2sulix.sh (limited to 'mayor-orig/mayor-installer-sulix/devel') 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 -- cgit v1.2.3