Don't need the replacement

This commit is contained in:
Bob Mottram 2016-10-29 17:07:18 +01:00
parent ac0a7afe0e
commit c56aab5285
1 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ function restore_local_htmly {
if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
fi
temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed '0,/RE/s/\.//')
temp_source_dir=$(find ${temp_restore_dir} -name htdocs)
cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
if [ ! "$?" = "0" ]; then
set_user_permissions
@ -294,7 +294,7 @@ function restore_remote_htmly {
if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
fi
temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed '0,/RE/s/\.//')
temp_source_dir=$(find ${temp_restore_dir} -name htdocs)
cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
if [ ! "$?" = "0" ]; then
exit 593