Blog restore directory
This commit is contained in:
parent
59b3cf03ab
commit
6763125aa9
|
@ -235,7 +235,7 @@ function restore_local_htmly {
|
||||||
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
|
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
|
||||||
fi
|
fi
|
||||||
temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed 's/\.//g')
|
temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed 's/\.//g')
|
||||||
cp -r ${temp_restore_dir}${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
|
cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
set_user_permissions
|
set_user_permissions
|
||||||
backup_unmount_drive
|
backup_unmount_drive
|
||||||
|
@ -295,7 +295,7 @@ function restore_remote_htmly {
|
||||||
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
|
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
|
||||||
fi
|
fi
|
||||||
temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed 's/\.//g')
|
temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed 's/\.//g')
|
||||||
cp -r ${temp_restore_dir}${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
|
cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
exit 593
|
exit 593
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue