Skip to content
Snippets Groups Projects
Commit 2a2da1a6 authored by Julien Leduc's avatar Julien Leduc
Browse files

Move back config file rpmsave is the original configfile is missing for the 4...

parent 8aa04ad3
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,13 @@ The xroot plugin
%systemd_post cta-frontend.service
%systemdDaemonReload
%posttrans -n cta-frontend
MISSING_CONF=%{_sysconfdir}/cta/cta-frontend-xrootd.conf
if [[ ! -f "${MISSING_CONF}" ]] && [[ -f "${MISSING_CONF}.rpmsave" ]]
then
mv ${MISSING_CONF}.rpmsave ${MISSING_CONF}
fi
%package -n cta-frontend-grpc
Summary: CERN Tape Archive: gRPC based frontend
Group: Application/CTA
......@@ -227,6 +234,13 @@ The command line utilities
%attr(0755,root,root) %{_bindir}/cta-verify-file
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-cli.conf.example
%posttrans -n cta-cli
MISSING_CONF=%{_sysconfdir}/cta/cta-cli.conf
if [[ ! -f "${MISSING_CONF}" ]] && [[ -f "${MISSING_CONF}.rpmsave" ]]
then
mv ${MISSING_CONF}.rpmsave ${MISSING_CONF}
fi
%package -n cta-lib-common
Summary: CERN Tape Archive libraries
Group: Application/CTA
......@@ -430,6 +444,13 @@ The Remote Media Changer daemon (rmcd)
%systemd_postun cta-rmcd.service
%systemdDaemonReload
%posttrans -n cta-rmcd
MISSING_CONF=%{_sysconfdir}/cta/cta-rmcd.conf
if [[ ! -f "${MISSING_CONF}" ]] && [[ -f "${MISSING_CONF}.rpmsave" ]]
then
mv ${MISSING_CONF}.rpmsave ${MISSING_CONF}
fi
%package -n cta-smc
Summary: The client of the Remote Media Changer Daemon (rmcd)
Group: Application/CTA
......@@ -441,6 +462,13 @@ The client of the Remote Media Changer Daemon (rmcd)
%attr(0755,root,root) %{_bindir}/cta-smc
%attr(0644,root,root) %doc /usr/share/man/man1/cta-smc.1cta.gz
%posttrans -n cta-smc
MISSING_CONF=%{_sysconfdir}/cta/cta-smc.conf
if [[ ! -f "${MISSING_CONF}" ]] && [[ -f "${MISSING_CONF}.rpmsave" ]]
then
mv ${MISSING_CONF}.rpmsave ${MISSING_CONF}
fi
%package -n cta-tape-label
Summary: The command-line tool for pre-labelling a CTA tape.
Group: Application/CTA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment