|
|
@ -24,7 +24,12 @@ gogocarto:init() { |
|
|
|
return 1 |
|
|
|
} |
|
|
|
fi |
|
|
|
if [ "$current_version" != "$GOGOCARTO_RELEASE" ]; then |
|
|
|
|
|
|
|
## Check if we need to upgrade code. |
|
|
|
if [ "$current_version" == "$GOGOCARTO_RELEASE" ]; then |
|
|
|
return 0 |
|
|
|
fi |
|
|
|
|
|
|
|
cd "${GOGOCARTO_CODE}" || return 1 |
|
|
|
if [ -d "$PWD"/.git ]; then |
|
|
|
rm -rf "$PWD"/* "$PWD"/{.version,.env} || return 1 |
|
|
@ -50,7 +55,6 @@ gogocarto:init() { |
|
|
|
} |
|
|
|
rm -rf "$SERVICE_DATASTORE/var/cache/gogocarto/"* |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|