This commit is contained in:
0
templates/dropshell-agent/_allservicesstatus.sh
Normal file → Executable file
0
templates/dropshell-agent/_allservicesstatus.sh
Normal file → Executable file
0
templates/dropshell-agent/_nuke_other.sh
Normal file → Executable file
0
templates/dropshell-agent/_nuke_other.sh
Normal file → Executable file
0
templates/dropshell-agent/install.sh
Normal file → Executable file
0
templates/dropshell-agent/install.sh
Normal file → Executable file
0
templates/dropshell-agent/shared/_autocommands.sh
Normal file → Executable file
0
templates/dropshell-agent/shared/_autocommands.sh
Normal file → Executable file
0
templates/dropshell-agent/shared/_common.sh
Normal file → Executable file
0
templates/dropshell-agent/shared/_common.sh
Normal file → Executable file
32
templates/dropshell-agent/shared/_run.sh
Executable file
32
templates/dropshell-agent/shared/_run.sh
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
directory_to_run_in=${1:-}
|
||||
command_to_run_base64=${2:-}
|
||||
|
||||
if [ -z "$directory_to_run_in" ]; then
|
||||
echo "Usage: $0 <directory_to_run_in> <command_to_run>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$command_to_run_base64" ]; then
|
||||
echo "Usage: $0 <directory_to_run_in> <command_to_run>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
command_to_run=$(echo "$command_to_run_base64" | base64 -d)
|
||||
|
||||
if [ -z "$command_to_run" ]; then
|
||||
echo "Usage: $0 <directory_to_run_in> <command_to_run>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "$directory_to_run_in" ]; then
|
||||
cd "$directory_to_run_in"
|
||||
fi
|
||||
|
||||
eval "$command_to_run"
|
||||
|
||||
|
||||
|
||||
|
0
templates/dropshell-agent/uninstall.sh
Normal file → Executable file
0
templates/dropshell-agent/uninstall.sh
Normal file → Executable file
Reference in New Issue
Block a user