Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterban
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eterban
Commits
2561206e
Commit
2561206e
authored
Jul 26, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gateway: preserve CLI subcommand failures
parent
46f8434c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
eterban.sh
gateway/usr/bin/eterban.sh
+8
-15
No files found.
gateway/usr/bin/eterban.sh
View file @
2561206e
...
...
@@ -24,13 +24,11 @@ if [ "$command" = "list" ] ; then
fi
if
[
"
$command
"
=
"unban"
]
;
then
/usr/share/eterban/unban.py
$1
exit
exec
/usr/share/eterban/unban.py
"
$1
"
fi
if
[
"
$command
"
=
"ban"
]
;
then
/usr/share/eterban/ban.py
$1
"blocked with eterban manually"
exit
exec
/usr/share/eterban/ban.py
"
$1
"
"blocked with eterban manually"
fi
if
[
"
$command
"
=
"check"
]
;
then
...
...
@@ -84,33 +82,28 @@ if [ "$command" = "clear" ] ; then
echo
"Usage: eterban clear --force"
>
&2
exit
2
fi
/usr/share/eterban/autoban_cli.py clear
exit
exec
/usr/share/eterban/autoban_cli.py clear
fi
if
[
"
$command
"
=
"reload-whitelist"
]
;
then
systemctl
kill
--signal
=
HUP eterban.service
exit
exit
$?
fi
if
[
"
$command
"
=
"info"
]
;
then
/usr/share/eterban/autoban_cli.py info
$1
exit
exec
/usr/share/eterban/autoban_cli.py info
"
$1
"
fi
if
[
"
$command
"
=
"reset"
]
;
then
/usr/share/eterban/autoban_cli.py reset
$1
exit
exec
/usr/share/eterban/autoban_cli.py reset
"
$1
"
fi
if
[
"
$command
"
=
"pending"
]
;
then
/usr/share/eterban/autoban_cli.py pending
exit
exec
/usr/share/eterban/autoban_cli.py pending
fi
if
[
"
$command
"
=
"permanent"
]
;
then
/usr/share/eterban/autoban_cli.py permanent
exit
exec
/usr/share/eterban/autoban_cli.py permanent
fi
cat
<<
EOF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment