resonite/scripts/99_start.sh

21 lines
No EOL
682 B
Bash
Executable file

#!/bin/bash
cd /data/resonite/Headless || exit
if [ "$STOP_LAUNCH" == "true" ]; then
echo "STOP_LAUNCH is set to true, exiting..."
exit 0
fi
echo "Running Resonite"
if [ "$MONKEY_LOADER" == "true" ]; then
echo "exec: dotnet /app/Loader.dll $DEFAULT_RESONITE_ARGS $RESONITE_ARGS"
# dotnet Resonite.dll -LoadAssembly MonkeyLoader/MonkeyLoader.dll $DEFAULT_RESONITE_ARGS $RESONITE_ARGS
# bash run_monkeyloader.sh $DEFAULT_RESONITE_ARGS $RESONITE_ARGS
dotnet /app/Loader.dll $DEFAULT_RESONITE_ARGS $RESONITE_ARGS
else
echo "exec: dotnet Resonite.dll $DEFAULT_RESONITE_ARGS $RESONITE_ARGS"
dotnet Resonite.dll $DEFAULT_RESONITE_ARGS $RESONITE_ARGS
fi