Skip to content

Commit

Permalink
Fix errors in update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aronmolnar committed Jul 31, 2024
1 parent 6a766fa commit 8ec5e31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,16 @@ mkdir "$sysreptor_directory"
tar xzf sysreptor.tar.gz -C "$sysreptor_directory" --strip-components=1
echo "Copy your app.env..."
cp "${backup_copy}/deploy/app.env" "${sysreptor_directory}/deploy/app.env"
if grep "sysreptor/docker.yml" "${backup_copy}/deploy/docker-compose.yml"
if grep "sysreptor/docker-compose.yml" "${backup_copy}/deploy/docker-compose.yml"
then
# Copy docker-compose.yml if it is not the old version (2024.58 and earlier)
echo "Copy your docker-compose.yml..."
cp "${backup_copy}/deploy/docker-compose.yml" "${sysreptor_directory}/deploy/docker-compose.yml"
fi
if [ -f "${backup_copy}/deploy/caddy/Caddyfile" ]; then
echo "Copying Caddyfile..."
cp "${backup_copy}/deploy/caddy/Caddyfile" "${sysreptor_directory}/deploy/caddy/Caddyfile"
fi
echo "Build and launch SysReptor via docker compose..."
echo "We are downloading and installing all dependencies."
echo "This may take a few minutes."
Expand All @@ -118,7 +122,7 @@ rm "${sysreptor_directory}/deploy/docker-compose.override.yml" 2>/dev/null || tr
if grep "^LICENSE=" "${sysreptor_directory}/deploy/app.env"
then
# This if-statement will be removed July 2025
include_languagetool=" - languagetool/docker.yml"
include_languagetool=" - languagetool/docker-compose.yml"
if ! grep -q "^$include_languagetool" "${sysreptor_directory}/deploy/docker-compose.yml"
then
# Include languagetool in docker-compose.yml
Expand Down

0 comments on commit 8ec5e31

Please sign in to comment.