Fixed RPM un-install clean-up issues and modified to no longer delete
the users created during RPM install to avoid problems created with files left around that were created by the users. Also removed un-necessary BuildRequire dependency on glade-sharp from CASA_auth_token_server package.
This commit is contained in:
parent
e8be849feb
commit
f97b5ba909
@ -242,6 +242,8 @@ fi
|
|||||||
%postun
|
%postun
|
||||||
# Always undeploy our webapp to force re-deployment on upgrade cases
|
# Always undeploy our webapp to force re-deployment on upgrade cases
|
||||||
rm -drf /srv/www/casaats/webapps/CasaAuthTokenSvc
|
rm -drf /srv/www/casaats/webapps/CasaAuthTokenSvc
|
||||||
|
rm -drf /srv/www/casaats/work/Catalina
|
||||||
|
rm -f /srv/www/casaats/conf/server.xml
|
||||||
|
|
||||||
%restart_on_update casa_atsd
|
%restart_on_update casa_atsd
|
||||||
%insserv_cleanup
|
%insserv_cleanup
|
||||||
@ -251,9 +253,6 @@ if test "$1" == 1; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete the casaatsd user
|
|
||||||
userdel casaatsd
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -15,7 +15,7 @@ Name: CASA_auth_token_server
|
|||||||
%define debug_opt ""
|
%define debug_opt ""
|
||||||
|
|
||||||
URL: http://www.novell.com/products
|
URL: http://www.novell.com/products
|
||||||
BuildRequires: CASA-devel apache2-devel expat gcc-c++ glib2-devel libstdc++ libstdc++-devel mono-devel pam-devel pkgconfig update-alternatives java-sdk-1.5.0 sysvinit insserv glade-sharp glade-sharp2
|
BuildRequires: CASA-devel apache2-devel expat gcc-c++ glib2-devel libstdc++ libstdc++-devel mono-devel pam-devel pkgconfig update-alternatives java-sdk-1.5.0 sysvinit insserv
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
BuildRequires: java-1_5_0-ibm-alsa
|
BuildRequires: java-1_5_0-ibm-alsa
|
||||||
%endif
|
%endif
|
||||||
@ -269,9 +269,6 @@ if test "$1" == 1; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete the casaatvd user
|
|
||||||
userdel casaatvd
|
|
||||||
|
|
||||||
# Delete the var files
|
# Delete the var files
|
||||||
rm -rf /var/lib/CASA/authtoken/validate
|
rm -rf /var/lib/CASA/authtoken/validate
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user