Skip to content

Commit 05a4fcd

Browse files
authored
Fix update (#7198)
1 parent 36acf4a commit 05a4fcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ct/komodo.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ function update_script() {
5656
mv "$BACKUP_FILE" "$COMPOSE_FILE"
5757
exit 1
5858
fi
59+
if ! grep -qxF 'COMPOSE_KOMODO_BACKUPS_PATH=/etc/komodo/backups' compose.env; then
60+
sed -i '/^COMPOSE_KOMODO_IMAGE_TAG=latest$/a COMPOSE_KOMODO_BACKUPS_PATH=/etc/komodo/backups' compose.env
61+
fi
5962
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d
6063
msg_ok "Updated ${APP}"
6164
exit

0 commit comments

Comments
 (0)