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

Change nextcloud password

parent fd175a98
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,14 @@ function add_user_nextcloud {
echo '0'
}
function change_password_nextcloud {
curr_username="$1"
export OC_PASS="$2"
su -s /bin/sh www-data -c "php occ user:resetpassword --password-from-env $curr_username"
export OC_PASS=""
}
function install_interactive_nextcloud {
if [ ! $ONION_ONLY ]; then
ONION_ONLY='no'
......
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