diff --git a/src/freedombone-app-nextcloud b/src/freedombone-app-nextcloud index a21b66c8..aa901b65 100755 --- a/src/freedombone-app-nextcloud +++ b/src/freedombone-app-nextcloud @@ -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'