File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ OBSAH_NAME=rop
44OBSAH_BASE=.
55OBSAH_DATA=${OBSAH_BASE} /src
66OBSAH_INVENTORY=${OBSAH_BASE} /inventories
7- export OBSAH_NAME OBSAH_DATA OBSAH_INVENTORY
7+ OBSAH_STATE=.var/lib/rop
8+ OBSAH_PERSIST_PARAMS=true
9+ export OBSAH_NAME OBSAH_DATA OBSAH_INVENTORY OBSAH_STATE OBSAH_PERSIST_PARAMS
810
911exec obsah " $@ "
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Requires: ansible-collection-community-general
1414Requires: ansible-collection-community-postgresql
1515Requires: ansible-collection-containers-podman >= 1.14.0
1616Requires: ansible-collection-theforeman-foreman
17- Requires: python3-obsah >= 1.1
17+ Requires: python3-obsah >= 1.3
1818
1919# These are needed on the target host, which is usually localhost
2020Recommends: podman
@@ -39,11 +39,13 @@ INVENTORY
3939
4040sed -i '/^OBSAH_BASE= / s|= .\+|= %{_datadir }/%{name }|' rop
4141sed -i '/^OBSAH_INVENTORY= / s|= .\+|= %{_sysconfdir }/%{name }/inventory|' rop
42+ sed -i '/^OBSAH_STATE= / s|= .\+|= %{_sharedstatedir }/%{name }|' rop
4243
4344%install
4445install -d -m0755 %{buildroot }%{_sysconfdir }/%{name }
4546install -d -m0755 %{buildroot }%{_datadir }/%{name }
4647install -d -m0755 %{buildroot }%{_bindir }
48+ install -d -m0750 %{buildroot }%{_sharedstatedir }/%{name }
4749
4850cp inventories/quadlet %{buildroot }%{_sysconfdir }/%{name }/inventory
4951cp -r src %{buildroot }%{_datadir }/%{name }
@@ -54,6 +56,7 @@ cp -r rop %{buildroot}%{_bindir}/%{name}
5456%{_bindir }/rop
5557%{_datadir }/%{name }
5658%config(noreplace) %{_sysconfdir }/%{name }
59+ %{_sharedstatedir }/%{name }
5760
5861
5962%changelog
Original file line number Diff line number Diff line change 1- obsah >= 1.1
1+ obsah >= 1.3
22requests
You can’t perform that action at this time.
0 commit comments