make enableGopassWrapperShForFirefox working not only for local execution

This commit is contained in:
az 2022-08-31 19:11:20 +02:00
parent 4bd919f4a2
commit a17d63e1a5

View file

@ -70,12 +70,12 @@ fun Prov.installGopassBridgeJsonApi() = task {
fun Prov.enableGopassWrapperShForFirefox() = 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( addTextToFile(
"owner @{HOME}/.config/gopass/gopass_wrapper.sh ux", "\nowner @{HOME}/.config/gopass/gopass_wrapper.sh ux\n",
appArmorFile, File(appArmorFile),
sudo = true sudo = true
) )
} }