Skip to content
Snippets Groups Projects
Commit 3765b919 authored by Bob Mottram's avatar Bob Mottram
Browse files

Add nextcloud user

parent 22476576
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,11 @@ function remove_user_nextcloud {
function add_user_nextcloud {
new_username="$1"
new_user_password="$2"
export OC_PASS="${2}"
cd /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs || exit 36
${NEXTCLOUD_COMMAND} user:add --password-from-env --display-name="${new_username}" "${new_username}"
"${PROJECT_NAME}-pass" -u "$new_username" -a nextcloud -p "$new_user_password"
echo '0'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment