loolwsd: copy /etc/resolv.conf in the jail
Because sometimes the hostname is not resolved
This commit is contained in:
parent
159e668b01
commit
515e6f7fea
1 changed files with 6 additions and 0 deletions
|
@ -894,6 +894,12 @@ void LOOLWSD::desktopMain()
|
|||
linkOrCopy(LOOLWSD::sysTemplate, jail);
|
||||
linkOrCopy(LOOLWSD::loTemplate, jailLOInstallation);
|
||||
|
||||
// We need this because sometimes the hostname is not resolved
|
||||
File resolv("/etc/resolv.conf");
|
||||
if (resolv.exists())
|
||||
{
|
||||
resolv.copyTo(Path(jail, "/etc").toString());
|
||||
}
|
||||
#ifdef __linux
|
||||
// Create the urandom and random devices
|
||||
File(Path(jail, "/dev")).createDirectory();
|
||||
|
|
Loading…
Reference in a new issue