summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-26 10:38:43 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-26 10:38:43 -0700
commitded5a53a6ce5f6de2f5ebfc76f5d1ca68edc605b (patch)
tree973bb5a77ea4a83ea38e7ecb04d120c343ccadce /one.cpp
parentd637988ccf5c62c1f20233cf5704329daff61c67 (diff)
downloadinfinitytier-ded5a53a6ce5f6de2f5ebfc76f5d1ca68edc605b.tar.gz
infinitytier-ded5a53a6ce5f6de2f5ebfc76f5d1ca68edc605b.zip
Documentation updates, add rules engine revision to network config request meta-data.
Diffstat (limited to 'one.cpp')
-rw-r--r--one.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/one.cpp b/one.cpp
index 3cb6b775..7cddb376 100644
--- a/one.cpp
+++ b/one.cpp
@@ -1086,6 +1086,12 @@ int main(int argc,char **argv)
}
}
+ // This can be removed once the new controller code has been around for many versions
+ if (OSUtils::fileExists((homeDir + ZT_PATH_SEPARATOR_S + "controller.db").c_str(),true)) {
+ fprintf(stderr,"%s: FATAL: an old controller.db exists in %s -- see instructions in controller/README.md for how to migrate!" ZT_EOL_S,argv[0],homeDir.c_str());
+ return 1;
+ }
+
#ifdef __UNIX_LIKE__
#ifndef ZT_ONE_NO_ROOT_CHECK
if ((!skipRootCheck)&&(getuid() != 0)) {