Skip to content

Commit a1f9101

Browse files
authored
Merge pull request #11 from OSC/generator
Run update_ood_portal in %post for RPM
2 parents 9fff903 + 772887f commit a1f9101

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packaging/ondemand-dex.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ getent passwd %{name} > /dev/null || useradd -r -d /var/lib/%{name} -g %{name} -
9696

9797
%post
9898
%systemd_post %{name}.service
99+
# On install, run update_ood_portal if installed
100+
if [ $1 == 1 ]; then
101+
if [ -f /opt/ood/ood-portal-generator/sbin/update_ood_portal ]; then
102+
/opt/ood/ood-portal-generator/sbin/update_ood_portal --rpm
103+
fi
104+
fi
99105

100106
%preun
101107
%systemd_preun %{name}.service

0 commit comments

Comments
 (0)