Skip to content

Commit

Permalink
adguardhome: use work directory
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlongzt committed Oct 16, 2024
1 parent cc61fe7 commit 31042f4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bucket/adguardhome.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@
},
"extract_dir": "AdGuardHome",
"bin": "AdGuardHome.exe",
"persist": [
"data",
"AdGuardHome.yaml"
],
"pre_install": [
"if (!(is_admin)) {error 'This package requires admin rights to install';break}",
"$config = \"AdGuardHome.yaml\"",
"if (!(Test-Path \"$persist_dir\\$config\")) { New-Item \"$dir\\$config\" -ItemType File | Out-Null }"
"if (!(is_admin)) {error 'This package requires admin rights to install';break}"
],
"post_install": [
"AdGuardHome.exe -s install --no-check-update"
"AdGuardHome.exe -s install --no-check-update --work-dir \"$persist_dir\""
],
"pre_uninstall": [
"if (!(is_admin)) { error 'Admin rights are required to uninstall'; break }",
Expand Down

0 comments on commit 31042f4

Please sign in to comment.