Files
homeassistant/restart.sh

7 lines
211 B
Bash
Executable File

#!/bin/bash
start='date'
echo "Running restart..."
docker-compose --compatibility down && docker-compose --compatibility up -d
end='date'
echo -e "\nScript has reached its end after: " $((end-start)) " seconds"