forked from EmpireProject/Empire
-
-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to startup and install (EmpireProject#790)
* Added install and pull for submodules * fixed pytest * updated submodules code to run as non-root * removed comments * Update empire/server/api/app.py Co-authored-by: Vincent Rose <[email protected]> * Update ps-empire Co-authored-by: Vincent Rose <[email protected]> * Update ps-empire Co-authored-by: Vincent Rose <[email protected]> * Update ps-empire Co-authored-by: Vincent Rose <[email protected]> * Update ps-empire Co-authored-by: Vincent Rose <[email protected]> * Update ps-empire Co-authored-by: Vincent Rose <[email protected]> * updated starkiller pull to use non root * updated submodule fetch to occur before check * updated changelog * updated docs --------- Co-authored-by: Vincent Rose <[email protected]>
- Loading branch information
Showing
12 changed files
with
110 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
#! /bin/bash | ||
sudo -E poetry run python empire.py ${@} | ||
#!/bin/bash | ||
|
||
INSTALL=0 | ||
YES_OPTION="" | ||
EMPIRE_ARGS=() | ||
|
||
# Parse command-line options manually, without using getopts, to allow non-standard options | ||
for arg in "$@"; do | ||
case $arg in | ||
install) | ||
INSTALL=1 | ||
;; | ||
-y) | ||
YES_OPTION="-y" | ||
;; | ||
*) | ||
EMPIRE_ARGS+=("$arg") | ||
;; | ||
esac | ||
done | ||
|
||
# Check if install option was given | ||
if [ $INSTALL -eq 1 ]; then | ||
./setup/install.sh $YES_OPTION | ||
fi | ||
|
||
sudo -E poetry run python empire.py "${EMPIRE_ARGS[@]}" |