Dokuwiki updates password store
This commit is contained in:
parent
51eeef0630
commit
3ead78b4f8
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue