scripts: move migration script away from control scripts

Origin commit data
------------------
Commit: 58f91648c0
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-26 (Sun, 26 Sep 2021)

Origin message was:
------------------
- scripts: move migration script away from control scripts
This commit is contained in:
vanhofen
2021-09-26 20:25:38 +02:00
parent 4266fecc1c
commit 8bb5af6841
5 changed files with 6 additions and 10 deletions

View File

@@ -365,7 +365,9 @@ int CNeutrinoApp::loadSetup(const char *fname)
int erg = 0;
// execute migration script before loading configfile
my_system(NEUTRINO_CONF_MIGRATION_SCRIPT);
std::string migration_sh = find_executable("migration.sh");
if (!migration_sh.empty())
my_system(migration_sh.c_str());
configfile.clear();
// load settings; setup defaults