From ba899d6ac7ca3e33b641b57e55fb3a941f9113b6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Jun 2017 16:18:31 +0100 Subject: [PATCH] users file location --- src/freedombone-app-dokuwiki | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki index f772b773..06d957b3 100755 --- a/src/freedombone-app-dokuwiki +++ b/src/freedombone-app-dokuwiki @@ -126,6 +126,7 @@ function backup_local_dokuwiki { source_directory=/var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/lib/plugins/acl if [ -d $source_directory ]; then dest_directory=dokuwikiacl + cp /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/conf/users*.php /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/lib/plugins/acl/ backup_directory_to_usb $source_directory $dest_directory fi } @@ -157,6 +158,7 @@ function restore_local_dokuwiki_legacy { # restore the users cp -r ${temp_restore_dir}/var/lib/dokuwiki/acl/users.auth.php /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/lib/plugins/acl + cp -r ${temp_restore_dir}/var/lib/dokuwiki/acl/users.auth.php /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/conf if [ ! "$?" = "0" ]; then function_check restore_directory_from_usb set_user_permissions @@ -203,7 +205,8 @@ function restore_local_dokuwiki { temp_restore_dir=/root/tempdokuwikiacl function_check restore_directory_from_usb restore_directory_from_usb ${temp_restore_dir} dokuwikiacl - cp -r ${temp_restore_dir}/var/www/${DOKUWIKI_DOMAIN_NAME}/htdocs/lib/plugins/acl/users.auth.php /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/lib/plugins/acl + cp ${temp_restore_dir}/var/www/${DOKUWIKI_DOMAIN_NAME}/htdocs/lib/plugins/acl/users.auth.php /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/lib/plugins/acl/ + cp ${temp_restore_dir}/var/www/${DOKUWIKI_DOMAIN_NAME}/htdocs/lib/plugins/acl/users.auth.php /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/conf/ if [ ! "$?" = "0" ]; then function_check restore_directory_from_usb set_user_permissions @@ -225,6 +228,7 @@ function backup_remote_dokuwiki { if [ -d /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs ]; then echo $"Backing up dokuwiki" backup_directory_to_friend /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/data dokuwikidat + cp /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/conf/users*.php /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/lib/plugins/acl/ backup_directory_to_friend /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs/lib/plugins/acl dokuwikiacl fi }