Only run storage script to create schema if it exists
@@ -68,8 +68,10 @@ if [[ "$1" != "--readingsPlugin" ]]; then
storagePlugin=${res[0]}
managedEngine=${res[1]}
# Call plugin check: this will create database if not set yet
+ if [[ -x ${pluginScriptPath}/${storagePlugin}.sh ]]; then
${pluginScriptPath}/${storagePlugin}.sh init ${FLEDGE_SCHEMA} ${managedEngine}
fi
+fi
# Run storage service
${storageExec} "$@"
