Delete cache and metadata when restoring dokuwiki
This commit is contained in:
parent
afb0a46fc8
commit
ee45f69518
|
@ -114,6 +114,8 @@ function restore_local_dokuwiki {
|
||||||
fi
|
fi
|
||||||
rm -rf $temp_restore_dir
|
rm -rf $temp_restore_dir
|
||||||
rm -rf ${temp_restore_dir}2
|
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/*
|
chown -R www-data:www-data /var/lib/dokuwiki/*
|
||||||
# Ensure that the bundled SSL cert is being used
|
# Ensure that the bundled SSL cert is being used
|
||||||
if [ -f /etc/ssl/certs/${DOKUWIKI_DOMAIN_NAME}.bundle.crt ]; then
|
if [ -f /etc/ssl/certs/${DOKUWIKI_DOMAIN_NAME}.bundle.crt ]; then
|
||||||
|
@ -153,6 +155,8 @@ function restore_remote_dokuwiki {
|
||||||
fi
|
fi
|
||||||
rm -rf /root/tempdokuwiki
|
rm -rf /root/tempdokuwiki
|
||||||
rm -rf /root/tempdokuwiki2
|
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/*
|
chown -R www-data:www-data /var/lib/dokuwiki/*
|
||||||
# Ensure that the bundled SSL cert is being used
|
# Ensure that the bundled SSL cert is being used
|
||||||
if [ -f /etc/ssl/certs/${DOKUWIKI_DOMAIN_NAME}.bundle.crt ]; then
|
if [ -f /etc/ssl/certs/${DOKUWIKI_DOMAIN_NAME}.bundle.crt ]; then
|
||||||
|
|
Loading…
Reference in New Issue