Skip to content

Commit

Permalink
Update python-app-2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0wwafa authored Nov 27, 2024
1 parent 3037af7 commit f50ef8c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/python-app-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ jobs:
passwd -d root
touch ~root/.hushlogin
cat logo.txt >/etc/issue
cat >>~root/.profile <<EOF1
eval \\$(cat /proc/\\$(pidof -x "sleep infinity")/environ | tr '\0' '\n' | awk -F= '{print "export \""\$1"\"=\""substr(\\$0, index(\\$0,\\$2))"\""}')
cd \\$HOME
EOF1
cat >>~runner/.profile <<EOF2
eval \\$(cat /proc/\\$(pidof -x "sleep infinity")/environ | tr '\0' '\n' | awk -F= '{print "export \""\$1"\"=\""substr(\\$0, index(\\$0,\\$2))"\""}')
cd \\$HOME
EOF2
ln -sf /usr/share/zoneinfo/Africa/Cairo /etc/localtime
lsof -Fn | grep -F '.log' | grep -v deleted | awk '/^n/ {print substr(\$0, 2)}' | xargs -I {} rm -rf {}
rm -rf /var/log/*
Expand Down

0 comments on commit f50ef8c

Please sign in to comment.