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

Delete cache and metadata when restoring dokuwiki

parent afb0a46f
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,8 @@ function restore_local_dokuwiki {
fi
rm -rf $temp_restore_dir
rm -rf ${temp_restore_dir}2
rm -rf /var/lib/dokuwiki/data/cache/*
rm -rf /var/lib/dokuwiki/data/meta/*
chown -R www-data:www-data /var/lib/dokuwiki/*
# Ensure that the bundled SSL cert is being used
if [ -f /etc/ssl/certs/${DOKUWIKI_DOMAIN_NAME}.bundle.crt ]; then
......@@ -153,6 +155,8 @@ function restore_remote_dokuwiki {
fi
rm -rf /root/tempdokuwiki
rm -rf /root/tempdokuwiki2
rm -rf /var/lib/dokuwiki/data/cache/*
rm -rf /var/lib/dokuwiki/data/meta/*
chown -R www-data:www-data /var/lib/dokuwiki/*
# Ensure that the bundled SSL cert is being used
if [ -f /etc/ssl/certs/${DOKUWIKI_DOMAIN_NAME}.bundle.crt ]; then
......
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