Skip to content
Browse files

Don't allow remote mythbackends to upgrade database.

Only allow the mythbackend application running on the master backend
host to upgrade the database.  Upgrades can still be performed by
mythtv-setup on any host (including master backend host, remote backend
hosts, and dedicated mythfrontend hosts).

(cherry picked from commit 889f533)
  • Loading branch information
sphery committed Mar 4, 2011
1 parent d525265 commit cccad820fc4b04cd9fd07d13e25687d675e0f90c
Showing with 3 additions and 3 deletions.
  1. +3 −3 mythtv/programs/mythbackend/main_helpers.cpp
@@ -660,16 +660,16 @@ int run_backend(const MythCommandLineParser &cmdline)
if (!setup_context(cmdline))

if (!UpgradeTVDatabaseSchema(true, true))
bool ismaster = gCoreContext->IsMasterHost();

if (!UpgradeTVDatabaseSchema(ismaster, ismaster))
VERBOSE(VB_IMPORTANT, "Couldn't upgrade database to new schema");


bool ismaster = gCoreContext->IsMasterHost();

g_pUPnp = new MediaServer(ismaster, !cmdline.IsUPnPEnabled() );

if (!ismaster)

0 comments on commit cccad82

Please sign in to comment.
You can’t perform that action at this time.