From 92bb8d082a4f78de633006da3f1632cdfb842a55 Mon Sep 17 00:00:00 2001 From: T-Hax <> Date: Fri, 19 May 2023 20:20:05 +0000 Subject: [PATCH] gitea: add migration script Signed-off-by: T-Hax <> --- gitea/migrate.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 gitea/migrate.sh diff --git a/gitea/migrate.sh b/gitea/migrate.sh new file mode 100755 index 0000000..d901305 --- /dev/null +++ b/gitea/migrate.sh @@ -0,0 +1,2 @@ +#!/bin/bash +find @tornado package.json -type f -name "package.json" -not -path "*node_modules*" -execdir sed -i "s/$OLD_REGISTRY_DOMAIN\/$OLD_REGISTRY_USER/$TARGET_REGISTRY_DOMAIN\/$TARGET_REGISTRY_USER/g" {} +