diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki index cc062d68..0d9fc5f7 100755 --- a/src/freedombone-app-dokuwiki +++ b/src/freedombone-app-dokuwiki @@ -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