Skip to content
Snippets Groups Projects
Verified Commit 91495dc5 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[PicaPlume] And again... forgot quotes...

parent d53d0234
No related branches found
No related tags found
No related merge requests found
Pipeline #62589 waiting for manual action
#!/bin/bash
set -e
usage() {
echo -e "usage:\t$0 DIRECTORY, e.g. $0 pica-mattermost"
echo -e "\tDIRECTORY : name of the directory containing docker-compose.yml\n"
......@@ -83,7 +81,8 @@ done
echo -e "\n==== Remove and re-create named external volumes ===="
for v in $(docker-compose config --volumes); do
if [ grep $v -A 1 docker-compose.yml | grep 'external' ]; then
res=$(grep $v -A 1 docker-compose.yml | grep 'external' || true)
if [ ! -z $res ]; then
# Don't fail if volume does not exists
docker volume rm "$v" || true
docker volume create "$v"
......
......@@ -45,7 +45,7 @@ if [ ! -f ${FIRSTLAUNCH_PATH} ]; then
fi
# Check if we updated since last launch
if [ "${PLUME_VERSION}" != $(cat ${FIRSTLAUNCH_PATH}) ]; then
if [ "${PLUME_VERSION}" != "$(cat ${FIRSTLAUNCH_PATH})" ]; then
# If so, we need to run migrations
echo "Instance updated since last launch, running migrations..."
plm migration run
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment