From 3ead78b4f8df78b9ecf1e0e3543e538710705886 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sun, 20 Nov 2016 15:02:59 +0000
Subject: [PATCH] Dokuwiki updates password store

---
 src/freedombone-app-dokuwiki | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki
index ccf31ae9d..e4ac23b2a 100755
--- a/src/freedombone-app-dokuwiki
+++ b/src/freedombone-app-dokuwiki
@@ -84,6 +84,7 @@ function add_user_dokuwiki {
     HASHED_DOKUWIKI_PASSWORD=$(echo -n "$new_user_password" | md5sum | awk -F ' ' '{print $1}')
     echo "$new_username:$HASHED_DOKUWIKI_PASSWORD:$new_username:$new_username@$HOSTNAME:user,upload" >> /var/lib/dokuwiki/acl/users.auth.php
     chmod 640 /var/lib/dokuwiki/acl/users.auth.php
+    ${PROJECT_NAME}-pass -u "$new_username" -a dokuwiki -p "$new_user_password"
 }
 
 function remove_user_dokuwiki {
@@ -91,6 +92,7 @@ function remove_user_dokuwiki {
 
     if grep "$remove_username:" /var/lib/dokuwiki/acl/users.auth.php; then
         sed -i "/$remove_username:/d" /var/lib/dokuwiki/acl/users.auth.php
+        ${PROJECT_NAME}-pass -u "$remove_username" --rmapp dokuwiki
     fi
 }
 
-- 
GitLab