Skip to content

Commit 31042f4

Browse files
committed
adguardhome: use work directory
1 parent cc61fe7 commit 31042f4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

bucket/adguardhome.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@
1414
},
1515
"extract_dir": "AdGuardHome",
1616
"bin": "AdGuardHome.exe",
17-
"persist": [
18-
"data",
19-
"AdGuardHome.yaml"
20-
],
2117
"pre_install": [
22-
"if (!(is_admin)) {error 'This package requires admin rights to install';break}",
23-
"$config = \"AdGuardHome.yaml\"",
24-
"if (!(Test-Path \"$persist_dir\\$config\")) { New-Item \"$dir\\$config\" -ItemType File | Out-Null }"
18+
"if (!(is_admin)) {error 'This package requires admin rights to install';break}"
2519
],
2620
"post_install": [
27-
"AdGuardHome.exe -s install --no-check-update"
21+
"AdGuardHome.exe -s install --no-check-update --work-dir \"$persist_dir\""
2822
],
2923
"pre_uninstall": [
3024
"if (!(is_admin)) { error 'Admin rights are required to uninstall'; break }",

0 commit comments

Comments
 (0)