Skip to content

Commit

Permalink
added support for php 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
4nkitd committed Jan 8, 2022
1 parent 180a3d1 commit 362ba90
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#e63a1199",
"titleBar.inactiveForeground": "#e7e7e799",
"editorGroup.border": "#f05d3a",
"panel.border": "#f05d3a",
"sash.hoverBorder": "#f05d3a",
"sideBar.border": "#f05d3a",
"statusBarItem.remoteBackground": "#e63a11",
"statusBarItem.remoteForeground": "#e7e7e7"
}
Expand Down
1 change: 1 addition & 0 deletions cmd/lump.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func InitServer() *cobra.Command {
3. Php7.4
4. Php7.3
5. Php7.2
5. Php8.0
`,
Args: cobra.MinimumNArgs(1),
Expand Down
9 changes: 9 additions & 0 deletions lump/lump.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,13 @@ func InstallerInit(cmd *cobra.Command, args []string) {

}

if utils.SearchString(args, "php8.0") == true {

Installphp()
Php80()

}

utils.Exec("sudo", "apt", "autoremove")

}
11 changes: 10 additions & 1 deletion lump/php.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ func Installphp() {
utils.Exec("sudo", "apt-get", "install", "software-properties-common")
utils.Exec("sudo", "add-apt-repository", "ppa:ondrej/php")
utils.Exec("sudo", "apt-get", "update")
utils.Exec("sudo", "apt-get", "-y", "php7.4")

}

Expand Down Expand Up @@ -44,6 +43,16 @@ func Php72() {

}

func Php80() {

utils.Exec("sudo", "apt-get", "-y", "php8.0")

fmt.Println("Installing php 8.0 ...")

Addons("8.0")

}

func Addons(version string) {

extensions := []string{
Expand Down

0 comments on commit 362ba90

Please sign in to comment.