Skip to content

Commit

Permalink
smal bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Aug 18, 2023
1 parent 67eab2a commit 146fb0c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
17 changes: 12 additions & 5 deletions admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,21 @@
)
parser.add_argument("-u", "--username", default="jenkins", action="store", required=False)
parser.add_argument(
"-r",
"-rs",
"--restart-service",
help="Restart processing, to be used with deployment options",
action="store_true",
default=False,
required=False,
)
parser.add_argument(
"-rw",
"--restart-uwsgi",
help="Restart UWSGI, by touching control file",
action="store_true",
default=False,
required=False,
)
parser.add_argument(
"-ci",
"--continues-integration",
Expand Down Expand Up @@ -339,10 +347,6 @@
gen_hashfile(args.generate_files_listing, args.filename)
elif args.check_files_difference:
compare_hashed_files(args.check_files_difference, servers, jumpbox, args.private_repo)

# comparing done
elif args.restart_service:
pass
else:
parser.print_help()
if args.deploy_local_changes or args.deploy_remote_changes or args.sync_community or args.deploy_remote_head or args.custom:
Expand All @@ -353,3 +357,6 @@

if args.restart_service and POSTPROCESS:
execute_command_on_all(POSTPROCESS, servers, jumpbox)

if args.restart_uwsgi:
execute_command_on_all("touch /tmp/capeuwsgireload", servers, jumpbox)
2 changes: 1 addition & 1 deletion lib/cuckoo/common/demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def demux_sflock(filename: bytes, options: str) -> List[bytes]:
unpacked = unpack(filename, check_shellcode=True)

if unpacked.package in whitelist_extensions:
return [filename]
return filename
if unpacked.package in blacklist_extensions:
return retlist
for sf_child in unpacked.children:
Expand Down
1 change: 1 addition & 0 deletions uwsgi/cape.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
#max-worker-lifetime = 30
;Some files found in this directory are processed by uWSGI init.d script as
;uWSGI configuration files.
touch-reload=/tmp/capeuwsgireload
1 change: 1 addition & 0 deletions uwsgi/capedist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@
harakiri = 30
hunder-lock = True
stats = 127.0.0.1:9191
touch-reload=/tmp/capeuwsgidistreload

0 comments on commit 146fb0c

Please sign in to comment.