update password store after nextcloud password change

This commit is contained in:
Bob Mottram 2017-05-09 12:09:52 +01:00
parent a3025cc142
commit 97c48ffa47
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ function change_password_nextcloud {
export OC_PASS="$2"
su -s /bin/sh www-data -c "php occ user:resetpassword --password-from-env $curr_username"
${PROJECT_NAME}-pass -u $curr_username -a nextcloud -p "$OC_PASS"
export OC_PASS=""
}