mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-26 04:50:36 +00:00
Fix SSH error
This commit is contained in:
parent
af94b99369
commit
9129f15c45
|
@ -4,7 +4,7 @@ touch banned-ips.json banned-ips.json.backup banned-players.json banned-players.
|
||||||
echo "$PRIVATE_KEY" > .key
|
echo "$PRIVATE_KEY" > .key
|
||||||
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
|
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
|
||||||
chmod 400 'find . -type f'
|
chmod 400 'find . -type f'
|
||||||
rsync -Waqz -e "ssh -i .key -o StrictHostKeyChecking=no -N -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .
|
rsync -Waqz -e "ssh -i .key -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .
|
||||||
|
|
||||||
if [ ! -d worlds/ ]; then
|
if [ ! -d worlds/ ]; then
|
||||||
cp -r reset/worlds/ .
|
cp -r reset/worlds/ .
|
||||||
|
@ -15,7 +15,7 @@ fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
bin/inotifywait -r -e modify,attrib,close_write,move,create,delete .
|
bin/inotifywait -r -e modify,attrib,close_write,move,create,delete .
|
||||||
rsync -Waqz -e "ssh -i .key -o StrictHostKeyChecking=no -N -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" plugins worlds serv@kaboom.pw:sync/ > /dev/null 2>&1
|
rsync -Waqz -e "ssh -i .key -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" plugins worlds serv@kaboom.pw:sync/ > /dev/null 2>&1
|
||||||
sleep 1
|
sleep 1
|
||||||
done &
|
done &
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue