appimage: Remove `run_appimage.sh` as it is no longer needed
The functionality of setting up the data directory and starting mongodb is now handled in python code.
This commit is contained in:
parent
19e8042ee4
commit
1c73a154bc
|
@ -25,5 +25,5 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
(PYTHONHOME="${APPDIR}/opt/python3.7" exec "/bin/bash" "${APPDIR}/usr/src/monkey_island/linux/run_appimage.sh")
|
||||
(PYTHONHOME="${APPDIR}/opt/python3.7" exec "${APPDIR}/opt/python3.7/bin/python3.7" "${APPDIR}/usr/src/monkey_island.py" $@)
|
||||
exit "$?"
|
||||
|
|
|
@ -165,7 +165,6 @@ copy_monkey_island_to_appdir() {
|
|||
cp "$1"/monkey_island.py "$INSTALL_DIR"
|
||||
cp -r "$1"/common "$INSTALL_DIR/"
|
||||
cp -r "$1"/monkey_island "$INSTALL_DIR/"
|
||||
cp ./run_appimage.sh "$INSTALL_DIR"/monkey_island/linux/
|
||||
cp ./server_config.json.standard "$INSTALL_DIR"/monkey_island/cc/
|
||||
|
||||
# TODO: This is a workaround that may be able to be removed after PR #848 is
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
PYTHON_CMD="$APPDIR"/opt/python3.7/bin/python3.7
|
||||
DOT_MONKEY="$HOME"/.monkey_island/
|
||||
|
||||
# shellcheck disable=SC2174
|
||||
mkdir --mode=0700 --parents "$DOT_MONKEY"
|
||||
|
||||
DB_DIR="$DOT_MONKEY"/db
|
||||
mkdir --parents "$DB_DIR"
|
||||
|
||||
cd "$APPDIR"/usr/src || exit 1
|
||||
./monkey_island/bin/mongodb/bin/mongod --dbpath "$DB_DIR" &
|
||||
${PYTHON_CMD} ./monkey_island.py --server-config "$DOT_MONKEY"/server_config.json
|
Loading…
Reference in New Issue