diff options
author | Sameer Naik <sameer@damagehead.com> | 2015-12-27 09:06:44 +0300 |
---|---|---|
committer | Sameer Naik <sameer@damagehead.com> | 2015-12-29 19:14:41 +0300 |
commit | a196b6e7bfc28d366bce8a7ab1c7ec27b5e76fe0 (patch) | |
tree | b0c420d32818714957b952f2b445534628960e12 /assets | |
parent | 71b3c54cf8bc69778f38d527d4e6f48d03eda3ae (diff) |
moved `VERSION` file to `OWNCLOUD_CONFIG_DIR`
Diffstat (limited to 'assets')
-rw-r--r-- | assets/runtime/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/runtime/functions b/assets/runtime/functions index a18b57a..079f4f4 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -215,7 +215,7 @@ owncloud_configure_database() { owncloud_upgrade() { CACHE_VERSION= - [[ -f ${OWNCLOUD_DATA_DIR}/VERSION ]] && CACHE_VERSION=$(cat ${OWNCLOUD_DATA_DIR}/VERSION) + [[ -f ${OWNCLOUD_CONFIG_DIR}/VERSION ]] && CACHE_VERSION=$(cat ${OWNCLOUD_CONFIG_DIR}/VERSION) if [[ ${OWNCLOUD_VERSION} != ${CACHE_VERSION} ]]; then ## version check, only upgrades are allowed @@ -247,7 +247,7 @@ owncloud_upgrade() { occ upgrade occ maintenance:mode --off fi - echo -n "${OWNCLOUD_VERSION}" | exec_as_owncloud tee ${OWNCLOUD_DATA_DIR}/VERSION >/dev/null + echo -n "${OWNCLOUD_VERSION}" | exec_as_owncloud tee ${OWNCLOUD_CONFIG_DIR}/VERSION >/dev/null fi } |