Question: how to define data directory using occ command

Hej guys

I love it to use the occ command to finish my NC installation.

sudo -u www-data php occ  maintenance:install --database "mysql" --database-name "nextcloud"  --database-user "root" --database-pass "password" --admin-user "admin" --admin-pass "password"

Is there a way to define the data directory in this command as well?

Kind regards
//neph

Found solution here:

sudo -u www-data php occ  maintenance:install --database "mysql" --database-name "nextcloud"  --database-user "root" --database-pass "password" --admin-user "admin" --admin-pass "password" --data-dir "/path/to/nextcloud/datadir"

Kind regards
//neph

1 Like