Make dokuwiki data writable on restore

This commit is contained in:
Bob Mottram 2016-10-29 14:58:41 +01:00
parent ee45f69518
commit 239d156d23
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,8 @@ function restore_local_dokuwiki {
rm -rf ${temp_restore_dir}2
rm -rf /var/lib/dokuwiki/data/cache/*
rm -rf /var/lib/dokuwiki/data/meta/*
chmod -R 755 /var/lib/dokuwiki/data
chown -R www-data:www-data /var/lib/dokuwiki/data
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
@ -157,6 +159,8 @@ function restore_remote_dokuwiki {
rm -rf /root/tempdokuwiki2
rm -rf /var/lib/dokuwiki/data/cache/*
rm -rf /var/lib/dokuwiki/data/meta/*
chmod -R 755 /var/lib/dokuwiki/data
chown -R www-data:www-data /var/lib/dokuwiki/data
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