Restore legacy wiki

This commit is contained in:
Bob Mottram 2016-10-17 17:09:11 +01:00
parent fbf6854879
commit 8c3ee1e223
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ function restore_local_dokuwiki {
DOKUWIKI_DOMAIN_NAME=$(get_completion_param "dokuwiki domain") DOKUWIKI_DOMAIN_NAME=$(get_completion_param "dokuwiki domain")
temp_restore_dir=/root/tempdokuwiki temp_restore_dir=/root/tempdokuwiki
function_check restore_directory_from_usb function_check restore_directory_from_usb
restore_directory_from_usb $temp_restore_dir wiki
restore_directory_from_usb $temp_restore_dir dokuwiki restore_directory_from_usb $temp_restore_dir dokuwiki
cp -r $temp_restore_dir/var/lib/dokuwiki/* /var/lib/dokuwiki/ cp -r $temp_restore_dir/var/lib/dokuwiki/* /var/lib/dokuwiki/
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then