Add migration for smooth stable update
This commit is contained in:
parent
e673cf3d9e
commit
36d48908a1
@ -4,7 +4,7 @@
|
|||||||
# $2 INIT
|
# $2 INIT
|
||||||
# $3 Pre update
|
# $3 Pre update
|
||||||
|
|
||||||
CURR_VERSION=4
|
CURR_VERSION=5
|
||||||
|
|
||||||
TUI=${1:-false}
|
TUI=${1:-false}
|
||||||
INIT=${2:-false}
|
INIT=${2:-false}
|
||||||
@ -66,9 +66,9 @@ function migrations() {
|
|||||||
cfg_write $configfile version $CURR_VERSION
|
cfg_write $configfile version $CURR_VERSION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Hack to fix compile error in version 1 to 3 caused by CoTiRe.
|
# Hack to fix compile error in version 1 to 3 caused by CoTiRe on legacy ubuntu.
|
||||||
if [ "$version" -lt 4 ]; then
|
if [ "$version" -lt 5 ]; then
|
||||||
cfg_write $configfile version 4
|
cfg_write $configfile version 5
|
||||||
if [ -d "./build/CMakeFiles/cathook.dir" ]; then
|
if [ -d "./build/CMakeFiles/cathook.dir" ]; then
|
||||||
rm -r ./build/CMakeFiles/cathook.dir
|
rm -r ./build/CMakeFiles/cathook.dir
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user