Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
a729e544
Commit
a729e544
authored
Feb 27, 2016
by
yumaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (install.py): ubuntu auto install mysql-server
1. auto install mysql server
parent
d4b57fc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
install.py
install/install.py
+3
-3
No files found.
install/install.py
View file @
a729e544
...
@@ -131,9 +131,9 @@ class PreSetup(object):
...
@@ -131,9 +131,9 @@ class PreSetup(object):
self
.
db_host
,
self
.
db_host
,
self
.
db_pass
))
self
.
db_pass
))
if
self
.
_is_ubuntu
:
if
self
.
_is_ubuntu
:
cmd1
=
'echo mysql-server mysql-server/root_password select '' | debconf-set-selections'
cmd1
=
"echo mysql-server mysql-server/root_password select '' | debconf-set-selections"
cmd2
=
'echo mysql-server mysql-server/root_password_again select '' | debconf-set-selections'
cmd2
=
"echo mysql-server mysql-server/root_password_again select '' | debconf-set-selections"
cmd3
=
'apt-get -y install mysql-server'
cmd3
=
"apt-get -y install mysql-server"
bash
(
'
%
s;
%
s;
%
s'
%
(
cmd1
,
cmd2
,
cmd3
))
bash
(
'
%
s;
%
s;
%
s'
%
(
cmd1
,
cmd2
,
cmd3
))
bash
(
'service mysql start'
)
bash
(
'service mysql start'
)
bash
(
'mysql -e "create database
%
s default charset=utf8"'
%
self
.
db
)
bash
(
'mysql -e "create database
%
s default charset=utf8"'
%
self
.
db
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment