11 lines
190 B
Bash
Executable File
11 lines
190 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo $SSH_KEY | base64 -d >> /tmp/key
|
|
chmod -R 0600 /tmp/key
|
|
|
|
ssh -i /tmp/key -o StrictHostKeyChecking=no $HOST "sudo systemctl restart docker-compose@mmt"
|
|
|
|
rm /tmp/key
|