Skip to content

Commit

Permalink
Merge pull request #241 from AllStarLink/240_fix_allowdeny
Browse files Browse the repository at this point in the history
Fix template for Allow/Deny Lists in web.ini
  • Loading branch information
jxmx authored Aug 5, 2024
2 parents 724d701 + f5c0a64 commit 6f14af7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf/web.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ HOME_BUTTON_URL = index.html
;; if you clicked on node 63001 shown as connected on
;; node 1999 the following command:
;;
;; database put denylist/@/% "Reason"
;; database put denylist/@ % "Reason"
;;
;; Will result int the command modal being populated
;; as:
Expand Down Expand Up @@ -97,8 +97,8 @@ rpt cmd @ cop 14 0 = System State 0 (normal)
rpt cmd @ cop 14 1 = System State 1 (rpt only)
rpt cmd @ cop 14 2 = System State 2 (rpt off)
rpt cmd @ cop 14 3 = System State 3 (New and News)
database put allowlist/@/% "Reason Here" = Alllowlist Entry
database put denylist/@/% "Reason Here" = Denylist Entry
database put allowlist/@ % "Reason Here" = Alllowlist Entry
database put denylist/@ % "Reason Here" = Denylist Entry
database show allowlist/@ = Show node allowlist
database show denylist/@ = Show node denylist
database del allowlist/@ = Delete node allowlist
Expand Down
4 changes: 4 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ do_configure() {
apache2_invoke enmod rewrite || exit $?
apache2_invoke enconf allmon3 || exit $?
fi

## Fix #240 on installed systems
perl -pi -e s'/list\/\@\/%/list\/\@ %/g' /etc/allmon3/web.ini

}

case "$1" in
Expand Down

0 comments on commit 6f14af7

Please sign in to comment.