add ups config and fix formatting

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-05-02 11:08:18 +03:00
parent 886037492c
commit b31ebb1145
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D
3 changed files with 13 additions and 2 deletions

View File

@ -2,4 +2,5 @@
![](https://git.ngn.tf/ngn/4get/actions/workflows/build.yml/badge.svg) ![](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.

View File

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
set -e 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 php ./gen_config.php
rm -f ./gen_config.php rm -f ./gen_config.php
fi fi

9
ups.json Normal file
View File

@ -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"
]
}