SHA256
1
0
forked from pool/gnunet

- Fix path to default configuration file

OBS-URL: https://build.opensuse.org/package/show/filesharing/gnunet?expand=0&rev=5
This commit is contained in:
Alexei Podvalsky 2019-05-16 21:27:16 +00:00 committed by Git OBS Bridge
parent 29cad19f0c
commit 54405cf2fa
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 16 21:22:38 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by>
- Fix path to default configuration file
-------------------------------------------------------------------
Wed May 15 16:48:43 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by>

View File

@ -214,7 +214,8 @@ install -Dm 0644 %{name}.sysusers.in %{buildroot}%{_sysusersdir}/%{name}.conf
ln -s %{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/config.d
# set a default configuration file
sed -ri '/DEFAULTCONFIG/s/^ +?# +?//' $(grep -rl 'DEFAULTCONFIG\ \?=')
sed -re '/DEFAULTCONFIG/s/^ +?# +?//' \
-i $(grep -rl 'DEFAULTCONFIG\ \?=' %{buildroot})
# create a default configuration
cat<<EOF > "%{buildroot}%{_sysconfdir}/%{name}.conf"