mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
added firefox
This commit is contained in:
15
backend/scripts/install-firefox.sh
Normal file
15
backend/scripts/install-firefox.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
# lock global
|
||||
touch /tmp/install.lock
|
||||
|
||||
# lock
|
||||
touch /tmp/install-firefox.lock
|
||||
|
||||
apt-get update
|
||||
apt-get -y install firefox ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
|
||||
apt-get -y install libcanberra-gtk3-module
|
||||
|
||||
# unlock global
|
||||
rm /tmp/install.lock
|
||||
|
||||
# unlock
|
||||
rm /tmp/install-firefox.lock
|
||||
@@ -74,6 +74,14 @@ func GetLangList() []entity.Lang {
|
||||
InstallScript: "install-chromedriver.sh",
|
||||
Type: constants.LangTypeWebDriver,
|
||||
},
|
||||
{
|
||||
Name: "Firefox",
|
||||
ExecutableName: "firefox",
|
||||
ExecutablePaths: []string{"/usr/bin/firefox", "/usr/local/bin/firefox"},
|
||||
LockPath: "/tmp/install-firefox.lock",
|
||||
InstallScript: "install-firefox.sh",
|
||||
Type: constants.LangTypeWebDriver,
|
||||
},
|
||||
}
|
||||
return list
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user