Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
5f51c550
Commit
5f51c550
authored
Mar 27, 2014
by
Benjamin Sonntag
Browse files
fixing upgrade check
parent
bacd8713
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/upgrade_check.sh
View file @
5f51c550
...
...
@@ -21,7 +21,7 @@ get_ext() {
# Reading the current version in the DB.
# If the DB exist but the alternc_status table doesn't, we will initialize it below
# In that case we search where we upgrade from in /var/lib/alternc/backups/lastversion from debian.postinstall script
oldvers
=
"
`
mysql
--defaults-file
=
/etc/alternc/my.cnf
--skip-column-name
-e
"SELECT value FROM alternc_status WHERE name='alternc_version'"
'
`"
oldvers
=
"
`
mysql
--defaults-file
=
/etc/alternc/my.cnf
--skip-column-name
-e
"SELECT value FROM alternc_status WHERE name='alternc_version'"
||
true
`
"
if
[
-z
"
$oldvers
"
]
then
# no version number, we check from /var/lib/alternc
...
...
Write
Preview
Supports
Markdown
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