diff --git a/netoik-cloud.spec b/netoik-cloud.spec index e37b01e..095e925 100644 --- a/netoik-cloud.spec +++ b/netoik-cloud.spec @@ -36,6 +36,7 @@ if ! -f %{_sysconfdir}/nextcloud/config.php; then export INSTANCE_ID=$(openssl rand -hex 16) export PASSWORD_SALT=$(openssl rand -hex 16) export SECRET=$(openssl rand -hex 16) + export CONFIG='$CONFIG' envsubst < %{_sysconfdir}/nextcloud/config.php.tpl > %{_sysconfdir}/nextcloud/config.php chown root:nextcloud %{_sysconfdir}/nextcloud/config.php chmod 640 %{_sysconfdir}/nextcloud/config.php