Merge pull request #176 from quexten/fix/browser-biometric-setup
Fix browser biometric setup
This commit is contained in:
commit
7265154b9a
|
@ -126,7 +126,8 @@ func detectAndInstallBrowsers(startPath string) error {
|
|||
fmt.Printf("Found mozilla-like browser: %s\n", path)
|
||||
|
||||
fmt.Println("Removing old manifest and proxy script")
|
||||
err = os.Chown(path+"/com.8bit.bitwarden.json", 7, 7)
|
||||
if _, err := os.Stat(path + "/com.8bit.bitwarden.json"); err == nil {
|
||||
err = os.Chmod(path+"/com.8bit.bitwarden.json", 755)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -134,7 +135,10 @@ func detectAndInstallBrowsers(startPath string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = os.Chown(path+"/goldwarden-proxy.sh", 7, 7)
|
||||
}
|
||||
|
||||
if _, err := os.Stat(path + "/goldwarden-proxy.sh"); err == nil {
|
||||
err = os.Chmod(path+"/goldwarden-proxy.sh", 755)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -142,6 +146,7 @@ func detectAndInstallBrowsers(startPath string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("Writing new manifest")
|
||||
manifest := strings.Replace(templateMozilla, "@PATH@", path+"/goldwarden-proxy.sh", 1)
|
||||
|
@ -159,7 +164,8 @@ func detectAndInstallBrowsers(startPath string) error {
|
|||
fmt.Printf("Found chrome-like browser: %s\n", path)
|
||||
|
||||
fmt.Println("Removing old manifest and proxy script")
|
||||
err = os.Chown(path+"/com.8bit.bitwarden.json", 7, 7)
|
||||
if _, err := os.Stat(path + "/com.8bit.bitwarden.json"); err == nil {
|
||||
err = os.Chmod(path+"/com.8bit.bitwarden.json", 755)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -167,7 +173,10 @@ func detectAndInstallBrowsers(startPath string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = os.Chown(path+"/goldwarden-proxy.sh", 7, 7)
|
||||
}
|
||||
|
||||
if _, err := os.Stat(path + "/goldwarden-proxy.sh"); err == nil {
|
||||
err = os.Chmod(path+"/goldwarden-proxy.sh", 755)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -175,6 +184,7 @@ func detectAndInstallBrowsers(startPath string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("Writing new manifest")
|
||||
manifest := strings.Replace(templateChrome, "@PATH@", path+"/goldwarden-proxy.sh", 1)
|
||||
|
|
Loading…
Reference in New Issue