1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-08 05:30:05 +01:00

🚨 Cleanup

This commit is contained in:
2019-07-01 13:46:02 +02:00
parent 5b319d2691
commit 8de76dc95a

View File

@@ -11,18 +11,12 @@ import Foundation
class Services { class Services {
public static func mysqlIsRunning() -> Bool { public static func mysqlIsRunning() -> Bool {
let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.mysql") let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.mysql")
if (running != "") { return (running != "")
return true
}
return false
} }
public static func nginxIsRunning() -> Bool { public static func nginxIsRunning() -> Bool {
let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.nginx") let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.nginx")
if (running != "") { return (running != "")
return true
}
return false
} }
public static func detectPhpVersions() -> [String] { public static func detectPhpVersions() -> [String] {