Make dokuwiki data writable on restore
This commit is contained in:
parent
ee45f69518
commit
239d156d23
|
@ -116,6 +116,8 @@ function restore_local_dokuwiki {
|
||||||
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/cache/*
|
||||||
rm -rf /var/lib/dokuwiki/data/meta/*
|
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/*
|
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
|
||||||
|
@ -157,6 +159,8 @@ function restore_remote_dokuwiki {
|
||||||
rm -rf /root/tempdokuwiki2
|
rm -rf /root/tempdokuwiki2
|
||||||
rm -rf /var/lib/dokuwiki/data/cache/*
|
rm -rf /var/lib/dokuwiki/data/cache/*
|
||||||
rm -rf /var/lib/dokuwiki/data/meta/*
|
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/*
|
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