Commit 21ce7069 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Añade script para relanzar servicios

parent 75bf30cc
Loading
Loading
Loading
Loading

script/relaunch.sh

0 → 100755
+13 −0
Original line number Diff line number Diff line
#!/bin/sh

. _definitions.sh

if [ -z "${SERVICE}" ]
then
	echo -e "${FAIL_COLOR}You must define 'SERVICE' in environment, with the name of service to relaunch${NULL_COLOR}"
	exit 1
fi

. _ssh-config.sh

ssh ${SSH_PARAMS} "${SSH_REMOTE}" "docker service update --force ${SERVICE}"