mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
Updates to delete any existing archived configs during update process to prevent name conflicts
This commit is contained in:
@@ -34,7 +34,17 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
|
|
||||||
void GetConfigFile(string url)
|
void GetConfigFile(string url)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var parser = new Crestron.SimplSharp.Net.Http.UrlParser(url);
|
||||||
|
|
||||||
|
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Successfully parsed URL from AppServer message: {0}", parser.Url);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Unable to parse URL from AppServer message. Generating URL from config data");
|
||||||
url = string.Format("http://{0}/api/system/{1}/config", AppServerController.Config.ServerUrl, AppServerController.SystemUuid);
|
url = string.Format("http://{0}/api/system/{1}/config", AppServerController.Config.ServerUrl, AppServerController.SystemUuid);
|
||||||
|
}
|
||||||
|
|
||||||
ConfigUpdater.GetConfigFromServer(url);
|
ConfigUpdater.GetConfigFromServer(url);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,9 +40,12 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
void ProgramInfoChanged(object sender, ProgramInfoEventArgs e)
|
void ProgramInfoChanged(object sender, ProgramInfoEventArgs e)
|
||||||
{
|
{
|
||||||
Debug.Console(1, "Posting Status Message: {0}", e.ProgramInfo.ToString());
|
if (e.ProgramInfo != null)
|
||||||
|
{
|
||||||
|
//Debug.Console(1, "Posting Status Message: {0}", e.ProgramInfo.ToString());
|
||||||
PostStatusMessage(e.ProgramInfo);
|
PostStatusMessage(e.ProgramInfo);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Posts the system monitor properties
|
/// Posts the system monitor properties
|
||||||
|
|||||||
Submodule essentials-framework updated: e1f26dc6e0...1393abd812
Reference in New Issue
Block a user