From 6f21913ae2a8e81ed7b897ac7847c530f790f1bd Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Fri, 1 Jan 2021 23:43:02 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Fix=20my=20PHP=20should=20also=20re?= =?UTF-8?q?start=20dnsmasq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon/Classes/Commands/Actions.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpmon/Classes/Commands/Actions.swift b/phpmon/Classes/Commands/Actions.swift index 45413ab..f072246 100644 --- a/phpmon/Classes/Commands/Actions.swift +++ b/phpmon/Classes/Commands/Actions.swift @@ -127,6 +127,8 @@ class Actions { If this does not solve the issue, the user may need to install additional extensions and/or run `composer global update`. */ public static func fixMyPhp() { + Shell.user.run("sudo \(Paths.brew()) services stop dnsmasq") + Shell.user.run("sudo \(Paths.brew()) services start dnsmasq") let versions = self.detectPhpVersions() versions.forEach { (version) in Shell.user.run("\(Paths.brew()) unlink php@\(version)") @@ -141,6 +143,7 @@ class Actions { Shell.user.run("\(Paths.brew()) services stop php") Shell.user.run("\(Paths.brew()) services stop nginx") Shell.user.run("\(Paths.brew()) link php") + Shell.user.run("sudo \(Paths.brew()) services restart dnsmasq") Shell.user.run("sudo \(Paths.brew()) services restart php") Shell.user.run("sudo \(Paths.brew()) services restart nginx") }