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
b33fcf78
Commit
b33fcf78
authored
Feb 08, 2013
by
Alan Garcia
Browse files
Bug de upgrade check
parent
80e96bc4
Changes
8
Hide whitespace changes
Inline
Side-by-side
.gitattributes
View file @
b33fcf78
...
...
@@ -535,14 +535,14 @@ install/upgrades/0.9.5.sql -text
install/upgrades/0.9.6.sql -text
install/upgrades/0.9.7.sql -text
install/upgrades/0.9.9.sql -text
install/upgrades/1.0.0.sql -text
install/upgrades/1.0.1.php -text
install/upgrades/1.0.3.sql -text
install/upgrades/1.0.4.sh -text
install/upgrades/1.0.sql -text
install/upgrades/1.1.php -text
install/upgrades/1.1.sh -text
install/upgrades/3.0.sh -text
install/upgrades/3.0.sql -text
install/upgrades/1.1.0.php -text
install/upgrades/1.1.0.sh -text
install/upgrades/3.0.0.sh -text
install/upgrades/3.0.0.sql -text
install/upgrades/README -text
lang/.svnignore -text
lang/README -text
...
...
install/upgrade_check.sh
View file @
b33fcf78
...
...
@@ -33,8 +33,7 @@ fi
# the upgrade script we are considering
extensions
=
"*.sql *.sh *.php"
cd
/usr/share/alternc/install/upgrades
for
file
in
$extensions
do
for
file
in
$(
ls
$extensions
|
sort
-n
)
;
do
if
[
-r
$file
]
;
then
# the version in the filename
upvers
=
`
strip_ext
$file
`
...
...
@@ -54,6 +53,9 @@ do
sh
)
sh
$file
||
true
;;
*
)
# Do nothing
;;
esac
fi
fi
...
...
install/upgrades/1.0.sql
→
install/upgrades/1.0.
0.
sql
View file @
b33fcf78
File moved
install/upgrades/1.1.php
→
install/upgrades/1.1.
0.
php
View file @
b33fcf78
File moved
install/upgrades/1.1.sh
→
install/upgrades/1.1.
0.
sh
View file @
b33fcf78
File moved
install/upgrades/3.0.sh
→
install/upgrades/3.0.
0.
sh
View file @
b33fcf78
File moved
install/upgrades/3.0.sql
→
install/upgrades/3.0.
0.
sql
View file @
b33fcf78
File moved
install/upgrades/README
View file @
b33fcf78
Fonctionnement
des
scripts
de
mise
-
à
-
jour
d
'AlternC
===================================================
/!\ ATTENTION /!\
Votre script DOIT etre numéroté sur trois chiffres, pas plus, pas moins.
Donc :
1.0.1.sql -> OK
1.0.2.5.sql -> PAS OK
1.0.sql -> PAS OK
Sinon, ca sera dans n'
importe
quel
ordre
.
Il
a
é
t
é
d
é
cid
é
que
des
mises
-
à
-
jour
pourront
ê
tre
"accrochées"
à
certaines
versions
en
les
mettant
dans
le
dossier
upgrades
.
Lors
de
l
'installation d'
un
paquet
,
un
script
(
upggrade_check
.
sh
)
examine
ce
...
...
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