From 3a0a2d04f37e29a0bbd74fae0481924ba1cd3371 Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 3 Jan 2024 07:28:39 +0900 Subject: [PATCH] dev: prefix message filename with timestamp --- .../{install_pgroonga => 20231128_install_pgroonga} | 0 ...ocker_compose_rename => 20231129_docker_compose_rename} | 0 ..._v21.resolved => 20231229_upgrade_node_to_v21.resolved} | 0 ...ocker_compose => 20240102_add_volume_to_docker_compose} | 0 neko/update/patch.sh | 7 +++++++ update.sh | 4 ++++ 6 files changed, 11 insertions(+) rename neko/messages/{install_pgroonga => 20231128_install_pgroonga} (100%) rename neko/messages/{docker_compose_rename => 20231129_docker_compose_rename} (100%) rename neko/messages/{temp_upgrade_node_to_v21.resolved => 20231229_upgrade_node_to_v21.resolved} (100%) rename neko/messages/{add_volume_to_docker_compose => 20240102_add_volume_to_docker_compose} (100%) create mode 100755 neko/update/patch.sh 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)