Use Nextcloud’s occ command to unlock the admin (#1406)

This commit is contained in:
Pascal Garber 2018-07-25 21:37:09 +02:00 committed by Joshua Tauberer
parent 7f37abca05
commit e0d46d1eb5

View file

@ -20,4 +20,4 @@ echo
echo Press enter to continue. echo Press enter to continue.
read read
sqlite3 $STORAGE_ROOT/owncloud/owncloud.db "INSERT OR IGNORE INTO oc_group_user VALUES ('admin', '$ADMIN')" && echo Done. sudo -u www-data php /usr/local/lib/owncloud/occ group:adduser admin $ADMIN && echo Done.