Skip to content

Commit

Permalink
HGBE #82. Using host network while in docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bounz committed Aug 29, 2018
1 parent 6255ec3 commit c1622a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HomeGenie/Service/BackupManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public bool RestoreConfiguration(string archiveFolder, string selectedPrograms)
private bool RestoreNewConfiguration(string archiveFolder, string selectedPrograms)
{
var oldConfigFile = Path.Combine(archiveFolder, FilePaths.SystemConfigFileName);
EnsureSystemConfigIsSafeForDocker(oldConfigFile);
//EnsureSystemConfigIsSafeForDocker(oldConfigFile);
Program.Quit(true, false);
return true;
}
Expand Down Expand Up @@ -305,7 +305,7 @@ private void UpdateSystemConfig(string archiveFolder, string selectedPrograms)
{
var oldConfigFile = Path.Combine(archiveFolder, FilePaths.SystemConfigFileName);
var newConfigFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, FilePaths.SystemConfigFilePath);
EnsureSystemConfigIsSafeForDocker(oldConfigFile);
//EnsureSystemConfigIsSafeForDocker(oldConfigFile);
FixOldInterfaceAssembliesNames(oldConfigFile);
File.Copy(oldConfigFile, newConfigFile, true);
}
Expand Down
2 changes: 1 addition & 1 deletion Utils/HgBootstrapper/docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ do
echo "No existing container ${cont_name}, running it..."
docker run -d --privileged \
--name ${cont_name} \
-p ${http_port}:80 \
--network="host" \
-v /usr/local/bin/hgdata:/usr/local/bin/homegenie/data \
${image_and_tag}
fi
Expand Down

0 comments on commit c1622a3

Please sign in to comment.