Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
Introduce `_` as sepparator for env variables
  • Loading branch information
CosminLazar committed May 23, 2024
1 parent b087736 commit 8bc8f2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/deploy-latest-and-run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh

image_name="untagged6785/ha-mitaffald"
container_name="ha-mitaffald"

Expand All @@ -12,4 +11,7 @@ echo "Removing container $container_name"
docker rm $container_name || true

echo "Starting new container"
docker run -d --name $container_name -e affaldvarme.address.id -e mqtt.username -e mqtt.password --restart=on-failure:5 $image_name:latest
docker run -d --name $container_name -e affaldvarme_address_id -e mqtt_username -e mqtt_password --restart=on-failure:5 $image_name:latest

# run this via /etc/config/crontab and not via crontab -e, because QNAP...
# crontab /etc/config/crontab && /etc/init.d/crond.sh restart

0 comments on commit 8bc8f2c

Please sign in to comment.