1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

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.
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.