make enableGopassWrapperShForFirefox working not only for local execution
This commit is contained in:
parent
4bd919f4a2
commit
a17d63e1a5
1 changed files with 4 additions and 4 deletions
|
@ -70,12 +70,12 @@ fun Prov.installGopassBridgeJsonApi() = task {
|
|||
|
||||
fun Prov.enableGopassWrapperShForFirefox() = task {
|
||||
|
||||
val appArmorFile = File("/etc/apparmor.d/usr.bin.firefox")
|
||||
val appArmorFile = "/etc/apparmor.d/usr.bin.firefox"
|
||||
|
||||
if (appArmorFile.exists()) {
|
||||
if (checkFile(appArmorFile)) {
|
||||
addTextToFile(
|
||||
"owner @{HOME}/.config/gopass/gopass_wrapper.sh ux",
|
||||
appArmorFile,
|
||||
"\nowner @{HOME}/.config/gopass/gopass_wrapper.sh ux\n",
|
||||
File(appArmorFile),
|
||||
sudo = true
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue