fix: replace php config var in config file
This commit is contained in:
@@ -36,6 +36,7 @@ if ! -f %{_sysconfdir}/nextcloud/config.php; then
|
|||||||
export INSTANCE_ID=$(openssl rand -hex 16)
|
export INSTANCE_ID=$(openssl rand -hex 16)
|
||||||
export PASSWORD_SALT=$(openssl rand -hex 16)
|
export PASSWORD_SALT=$(openssl rand -hex 16)
|
||||||
export SECRET=$(openssl rand -hex 16)
|
export SECRET=$(openssl rand -hex 16)
|
||||||
|
export CONFIG='$CONFIG'
|
||||||
envsubst < %{_sysconfdir}/nextcloud/config.php.tpl > %{_sysconfdir}/nextcloud/config.php
|
envsubst < %{_sysconfdir}/nextcloud/config.php.tpl > %{_sysconfdir}/nextcloud/config.php
|
||||||
chown root:nextcloud %{_sysconfdir}/nextcloud/config.php
|
chown root:nextcloud %{_sysconfdir}/nextcloud/config.php
|
||||||
chmod 640 %{_sysconfdir}/nextcloud/config.php
|
chmod 640 %{_sysconfdir}/nextcloud/config.php
|
||||||
|
|||||||
Reference in New Issue
Block a user