1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

rm check java in scripts (#5414)

This commit is contained in:
欢乐马
2023-03-24 16:12:59 +08:00
committed by GitHub
parent 027db966a2
commit 641dc04f86
4 changed files with 1 additions and 50 deletions

View File

@@ -550,7 +550,7 @@ class MigratingProfessionalConfigurator(ProfessionalConfigurator):
ProfessionalConfigurator.__init__(self, args, migrate=True)
def check_pre_condition(self):
self.check_java()
pass
def config(self):
self.detect_db_type()
@@ -599,17 +599,6 @@ class MigratingProfessionalConfigurator(ProfessionalConfigurator):
if Utils.run_argv(argv) != 0:
Utils.error('failed to update avatars folder')
def check_java(self):
Utils.info('\nChecking java ... ', newline=False)
if not Utils.find_in_path('java'):
msg = '''\nJava is not found. instal it first.\n
On Debian/Ubuntu: apt-get install default-jre
On CentOS/RHEL: yum install jre
'''
Utils.error(msg)
Utils.info('Done')
class SetupProfessionalConfigurator(ProfessionalConfigurator):
'''This script is invokded by setup-seafile.sh/setup-seafile-mysql.sh to