# rpi-ai

## Nextcloud


* ```docker exec -it nxtcld /bin/bash```
** ```/var/www/html/config/config.php```
----
<?php
$CONFIG = array (
  ... ... ... ...
  'trusted_domains' => 
  array (
    0 => 'nxtcld.njord.dynv6.net',
    1 => 'dockerpi:882',
  ),
  ... ... ... ...
  'overwrite.cli.url' => 'https://nxtcld.njord.dynv6.net',
  'overwriteprotocol' => 'https',
  ... ... ... ...
);
----



* Create user without email notification ```NextCloud 25.xx```
----
sudo -u www-data bash -c "export OC_PASS=Zapata21092015    ; php occ  user:add jdiller     --password-from-env --group='admin' --display-name='Jan Diller'"
sudo -u www-data bash -c "export OC_PASS=Patterson21092015 ; php occ  user:add ndiller     --password-from-env                 --display-name='Nicole Diller'"
sudo -u www-data bash -c "export OC_PASS=Donnerhall8102    ; php occ  user:add ldiller     --password-from-env                 --display-name='Lucie Diller'"
sudo -u www-data bash -c "export OC_PASS=BeeGees1958       ; php occ  user:add bwolzenburg --password-from-env                 --display-name='Brigitta Wolzenburg'"
----

* Rescan file system
----
docker exec -u www-data 7e9dfbbf4739 php occ files:cleanup
docker exec -u www-data 7e9dfbbf4739 php occ files:scan --all
----



