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:
@@ -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
|
||||
|
Reference in New Issue
Block a user