Skip to content
Snippets Groups Projects
Commit c56aab52 authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't need the replacement

parent ac0a7afe
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment