Skip to content

Commit 64b94c4

Browse files
authored
Update tomcat.spec
1 parent 644da63 commit 64b94c4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tomcat.spec

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,6 @@ mkdir -p %{buildroot}/%{catalina_base}/temp
8383
mkdir -p %{buildroot}/%{catalina_base}/logs
8484
cp -r work %{buildroot}/%{catalina_base}
8585

86-
#Conditions for installing the manager and host-manager applications
87-
#If a fresh install, manager application will be installed
88-
#If an upgrade, manager application will only be upgraded IF it currently exists within the Tomcat webapps directory.
89-
#This gives users the ability to remove the manager applications if unneedded and them not be reinstalled during upgrades.
90-
if [ "$1" == 1 ]; then
91-
# Fresh install
92-
cp -r %{catalina_home}/webapps/manager %{catalina_base}/webapps/
93-
cp -r %{catalina_home}/webapps/host-manager %{catalina_base}/webapps/
94-
elif [ "$1" == 2 ]; then
95-
# Upgrade
96-
if [ -d %{catalina_base}/webapps/manager ]; then
97-
cp -r %{catalina_home}/webapps/manager %{catalina_base}/webapps/
98-
fi
99-
if [ -d %{catalina_base}/webapps/host-manager ]; then
100-
cp -r %{catalina_home}/webapps/host-manager %{catalina_base}/webapps/
101-
fi
102-
fi
103-
10486
%files
10587
%attr(0644,root,root) %{_unitdir}/tomcat9.service
10688
%defattr(0640,tomcat,%tomcat_group,0750)

0 commit comments

Comments
 (0)