Initial import - (formaly a SVN project named rcopy)

This commit is contained in:
2017-01-24 15:15:01 +01:00
commit 76433059ad
16 changed files with 3079 additions and 0 deletions

15
convert.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# - Convert user created files from rcopy svn versions eralier than revision 50
# -
# - Change your existing hosts files and rcopy.conf file.
# -
base_path=/root/crontab/rcopy
sed -i '/^default_config_file=/d' ${base_path}/hosts/*.sh
sed -i '/^rcopy_functions_file=/d' ${base_path}/hosts/*.sh
perl -i -n -p -e "s#\.\s+\\\$default_config_file.*#. \\\$rcopy_conf_file#" ${base_path}/hosts/*.sh
perl -i -n -p -e "s#^crontab_base_dir=.*#crontab_base_dir=\\\$rcopy_base_dir#" ${base_path}/conf/rcopy.conf
exit 0