From b31ebb1145ac7526236c422fcc89829613e1a2f9 Mon Sep 17 00:00:00 2001 From: ngn Date: Fri, 2 May 2025 11:08:18 +0300 Subject: [PATCH] add ups config and fix formatting Signed-off-by: ngn --- README.md | 3 ++- docker/init.sh | 3 ++- ups.json | 9 +++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 ups.json diff --git a/README.md b/README.md index 251e7e8..c9982c2 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,5 @@ ![](https://git.ngn.tf/ngn/4get/actions/workflows/build.yml/badge.svg) -A fork of the [4get](https://git.lolcat.ca/lolcat/4get) project, with my personal changes. +A fork of the [4get](https://git.lolcat.ca/lolcat/4get) project, with my +personal changes. diff --git a/docker/init.sh b/docker/init.sh index 21926e8..5ffb1d2 100644 --- a/docker/init.sh +++ b/docker/init.sh @@ -1,7 +1,8 @@ #!/bin/sh set -e -if [ ! -f '/var/www/html/4get/data/config.php' ] && [ -f './gen_config.php' ]; then +if [ ! -f '/var/www/html/4get/data/config.php' ] && [ -f './gen_config.php' ] +then php ./gen_config.php rm -f ./gen_config.php fi diff --git a/ups.json b/ups.json new file mode 100644 index 0000000..5758d07 --- /dev/null +++ b/ups.json @@ -0,0 +1,9 @@ +{ + "upstream": "https://git.lolcat.ca/lolcat/4get", + "provider": "gitea", + "commit": "ff8b1addf7059a8289049e937475c289e1ba407d", + "scripts": [ + "s/--- a\\//--- a\\/src\\//g", + "s/+++ b\\//+++ b\\/src\\//g" + ] +} \ No newline at end of file