Skip to content
This repository was archived by the owner on Dec 9, 2019. It is now read-only.

Commit 5397896

Browse files
authored
Change /etc/rc.local read order
1 parent c9d59d4 commit 5397896

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/Valet/DnsMasq.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ private function mergeDns()
9292
{
9393
$optDir = '/opt/valet-linux';
9494
$script = $optDir.'/get-dns-servers';
95-
$rclocal = $this->files->get($this->rclocal);
9695
$output = [];
9796

9897
$this->pm->ensureInstalled('inotify-tools');
@@ -104,6 +103,8 @@ private function mergeDns()
104103
$this->files->put($this->rclocal, implode("\n", ['exit 0', '']));
105104
}
106105

106+
$rclocal = $this->files->get($this->rclocal);
107+
107108
if (strpos($rclocal, $script) === false) {
108109
$this->files->backup($this->rclocal);
109110

0 commit comments

Comments
 (0)