diff --git a/neko/messages/install_pgroonga b/neko/messages/20231128_install_pgroonga similarity index 100% rename from neko/messages/install_pgroonga rename to neko/messages/20231128_install_pgroonga diff --git a/neko/messages/docker_compose_rename b/neko/messages/20231129_docker_compose_rename similarity index 100% rename from neko/messages/docker_compose_rename rename to neko/messages/20231129_docker_compose_rename diff --git a/neko/messages/temp_upgrade_node_to_v21.resolved b/neko/messages/20231229_upgrade_node_to_v21.resolved similarity index 100% rename from neko/messages/temp_upgrade_node_to_v21.resolved rename to neko/messages/20231229_upgrade_node_to_v21.resolved diff --git a/neko/messages/add_volume_to_docker_compose b/neko/messages/20240102_add_volume_to_docker_compose similarity index 100% rename from neko/messages/add_volume_to_docker_compose rename to neko/messages/20240102_add_volume_to_docker_compose diff --git a/neko/update/patch.sh b/neko/update/patch.sh new file mode 100755 index 000000000..218b4817c --- /dev/null +++ b/neko/update/patch.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +[ ! -f neko/flags/install_pgroonga ] || mv neko/flags/install_pgroonga neko/flags/20231128_install_pgroonga +[ ! -f neko/flags/docker_compose_rename ] || mv neko/flags/docker_compose_rename neko/flags/20231129_docker_compose_rename +[ ! -f neko/flags/temp_upgrade_node_to_v21 ] || mv neko/flags/temp_upgrade_node_to_v21 neko/flags/20231229_upgrade_node_to_v21 +[ ! -f neko/flags/add_volume_to_docker_compose ] || mv neko/flags/add_volume_to_docker_compose neko/flags/20240102_add_volume_to_docker_compose diff --git a/update.sh b/update.sh index ac2887b4d..c572fb5ae 100755 --- a/update.sh +++ b/update.sh @@ -6,6 +6,10 @@ set -eu say 'Start upgrading Firefish!' br +# Apply patches +run './neko/update/patch.sh' +br + # Pull changes ## git pull OLD_COMMIT=$(git rev-parse --short HEAD)