mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-26 04:51:26 +00:00
Fix Nextcloud initialization
This commit is contained in:
parent
8c81f24fa7
commit
52b896da45
|
@ -23,6 +23,7 @@ in
|
||||||
{
|
{
|
||||||
nextcloudSecrets =
|
nextcloudSecrets =
|
||||||
if cfg.nextcloud.enable then ''
|
if cfg.nextcloud.enable then ''
|
||||||
|
mkdir -p /var/lib/nextcloud
|
||||||
cat /etc/nixos/userdata/userdata.json | ${jq} -r '.nextcloud.databasePassword' > /var/lib/nextcloud/db-pass
|
cat /etc/nixos/userdata/userdata.json | ${jq} -r '.nextcloud.databasePassword' > /var/lib/nextcloud/db-pass
|
||||||
chmod 0440 /var/lib/nextcloud/db-pass
|
chmod 0440 /var/lib/nextcloud/db-pass
|
||||||
chown nextcloud:nextcloud /var/lib/nextcloud/db-pass
|
chown nextcloud:nextcloud /var/lib/nextcloud/db-pass
|
||||||
|
|
Loading…
Reference in a new issue