Skip to content

Commit 3df5e07

Browse files
author
explodeo
committed
fixed build script issue with python
1 parent dc6e9ca commit 3df5e07

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

install/utils/build_tenablecore.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ function install_notes(){
6868

6969
function install_api(){
7070
# install pip packages (includes pyinstaller)
71-
su acasuser bash -c 'python -m ensurepip'
72-
sudo -Eu acasuser bash -c '/home/acasuser/.local/bin/pip3 install --no-index --find-links "$INSTALL_TEMPDIR/install/python/oracle/" -r "$INSTALL_TEMPDIR/NessusAPI/requirements.txt"'
71+
su acasuser bash -c 'python3 -m ensurepip'
72+
sudo -Eu acasuser bash -c '/home/acasuser/.local/bin/pip3 install --no-index --find-links "$INSTALL_TEMPDIR/install/python/oracle/" "$INSTALL_TEMPDIR/install/python/oracle/"*'
7373

7474
# install nessus-configure src and configs
7575
mkdir -p /opt/NessusAPI/{bin,src}
@@ -129,6 +129,7 @@ while [[ "$#" -gt 0 ]]; do
129129
done
130130

131131
mkdir -p "$INSTALL_TEMPDIR"
132+
# INSTALL_TEMPDIR=`realpath "$INSTALL_TEMPDIR"`
132133

133134
if ! command -v tar &> /dev/null; then
134135
rpm -i tar-1.34-6.el9_4.1.x86_64.rpm

src/NessusAPI/nessus-policy-update.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def parse_args(argv: list[str]) -> dict:
3737
epilog=textwrap.dedent('''COMMAND:
3838
setpasswords: Set credentials for a scan policy
3939
configureserver: Set server connection settings
40-
setscanpolicy: Set path to the Nessus scan policy XML''')
40+
setscanpolicy: Set path to the Nessus scan policy XML
41+
''')
4142
)
4243
parser.add_argument("config", metavar="CONFIG", help="NessusAPI Policy JSON config")
4344
parser.add_argument("--policies", metavar="POLCYNAME", nargs='*', default=['*'], help="Choose a specific policy to update in the JSON config (default=*)")
@@ -65,8 +66,6 @@ def parse_args(argv: list[str]) -> dict:
6566
remaining_args = argv
6667
while len(remaining_args) > 0:
6768
parseable_args, remaining_args = _split_args(remaining_args, commands)
68-
print(parseable_args)
69-
print(remaining_args)
7069
if len(parseable_args) == 0:
7170
raise ArgumentError(None, f'Unknown argument: "{remaining_args[0]}"')
7271
if parseable_args[0] not in commands:

src/TenableCore/scripts/bin/cdburn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TEMP_DIR=$(mktemp -d)
1515
ISO_IMAGE="$TEMP_DIR/image.iso"
1616

1717
# Create the ISO image from the provided files and directories
18-
mkisofs -o "$ISO_IMAGE" -J -R "$@"
18+
mkisofs -file-mode 777 -o "$ISO_IMAGE" -J -R "$@"
1919

2020
# Check if mkisofs succeeded
2121
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)