Try to gracefully shut down

This commit is contained in:
mathias 2018-11-24 23:11:57 +02:00
parent dac2a2bf70
commit ee68fd0d66

View file

@ -1,4 +1,11 @@
#!/bin/bash
shutdown() {
trap - SIGINT SIGTERM
kill -- -$$
}
trap shutdown SIGINT SIGTERM
mkdir -p crash-reports/ dumps/
echo "$PRIVATE_KEY" > .ssh/id_rsa
chmod -R 500 dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/