Use systemctl in update script

This commit is contained in:
Wojciech Kozlowski 2019-11-13 11:02:59 +08:00
parent af5e494ac6
commit a91be740fa

View File

@ -23,7 +23,7 @@ docker-compose -f $DIRNAME/docker-compose.yml pull
echo -e "${CYAN}[${SCRIPT}] Stop the containers${NC}" echo -e "${CYAN}[${SCRIPT}] Stop the containers${NC}"
service loki-server stop systemctl stop loki-server
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Start the containers. # Start the containers.
@ -31,7 +31,7 @@ service loki-server stop
echo -e "${CYAN}[${SCRIPT}] Start the containers${NC}" echo -e "${CYAN}[${SCRIPT}] Start the containers${NC}"
service loki-server start systemctl start loki-server
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Remove untagged images. # Remove untagged images.