Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
711f12bb
Commit
711f12bb
authored
Mar 15, 2018
by
Chris Thurber
Committed by
GitHub
Mar 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2060 from uberhacker/add-mysqltuner-package
Add mysqltuner package
parents
482cf7d8
fbe76fa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
packages/mysqltuner.rb
packages/mysqltuner.rb
+17
-0
No files found.
packages/mysqltuner.rb
0 → 100644
View file @
711f12bb
require
'package'
class
Mysqltuner
<
Package
description
'MySQLTuner is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability.'
homepage
'https://github.com/major/MySQLTuner-perl'
version
'1.7.7'
source_url
'https://raw.githubusercontent.com/major/MySQLTuner-perl/1c51f442822a170fb2eaafb088f22c8f4baacd9d/README.md'
source_sha256
'381d2200b487b4e8839d863ee300b761d5d0a8ee4eac5a8c51ef9bbd640ae6e6'
depends_on
'perl'
def
self
.
install
system
"wget https://raw.githubusercontent.com/major/MySQLTuner-perl/1c51f442822a170fb2eaafb088f22c8f4baacd9d/mysqltuner.pl"
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
'mysqltuner.pl'
)
)
==
'26ad914fff4afca883a6a4d2bc69c142316144888c45e46e0fa56ad2b5a98a34'
system
"install -Dm755 mysqltuner.pl
#{
CREW_DEST_PREFIX
}
/bin/mysqltuner"
end
end
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