Change nextcloud password
This commit is contained in:
parent
fd175a988c
commit
a3025cc142
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue