refactor: use version in DOKKU_LIB_ROOT
The version in DOKKU_ROOT may be incorrect for docker-based installs if that directory is mounted from an external volume. Instead, pull it from the DOKKU_LIB_ROOT directory, and respect the STABLE_VERSION if specified (VERSION will be the entire version, including commit sha).
This commit is contained in:
1 parent
e07703645e
commit
5506c9e27d
4 files changed
+10
-16
No files matched your search
@@ -48,11 +48,6 @@ setup-sshcommand() {
|
||||
fi
|
||||
}
|
||||
|
||||
setup-version() {
|
||||
rm -f "${DOKKU_ROOT}/VERSION"
|
||||
cp "${DOKKU_LIB_ROOT}/STABLE_VERSION" "${DOKKU_ROOT}/VERSION"
|
||||
}
|
||||
|
||||
main() {
|
||||
if [[ -r /etc/default/dokku ]]; then
|
||||
# shellcheck disable=SC1091
|
||||
@@ -66,7 +61,6 @@ main() {
|
||||
setup-storage
|
||||
setup-plugins
|
||||
setup-sshcommand
|
||||
setup-version
|
||||
}
|
||||
|
||||
main
|
||||
Reference in new issue
Block a user