mirror of
https://github.com/vale981/rmview
synced 2025-03-05 09:11:39 -05:00
Uploading libcrypto uncompressed since gunzip
seems to be failing
This commit is contained in:
parent
077efd77c8
commit
adb3249d77
4 changed files with 8 additions and 8 deletions
BIN
bin/libcrypto.so.1.0.2
Normal file
BIN
bin/libcrypto.so.1.0.2
Normal file
Binary file not shown.
Binary file not shown.
|
@ -6,6 +6,6 @@
|
|||
<file>assets/problem.svg</file>
|
||||
<file>bin/rM1-vnc-server-standalone</file>
|
||||
<file>bin/rM2-vnc-server-standalone</file>
|
||||
<file>bin/libcrypto.so.1.0.2.gz</file>
|
||||
<file>bin/libcrypto.so.1.0.2</file>
|
||||
</qresource>
|
||||
</RCC>
|
|
@ -250,15 +250,15 @@ class rMViewApp(QApplication):
|
|||
log.info("Installing libcrypto...")
|
||||
try:
|
||||
sftp = ssh.open_sftp()
|
||||
from stat import S_IXUSR
|
||||
fo = QFile(':bin/libcrypto.so.1.0.2.gz')
|
||||
fo = QFile(':bin/libcrypto.so.1.0.2')
|
||||
fo.open(QIODevice.ReadOnly)
|
||||
sftp.putfo(fo, '/usr/lib/libcrypto.so.1.0.2.gz')
|
||||
sftp.putfo(fo, '/usr/lib/libcrypto.so.1.0.2')
|
||||
fo.close()
|
||||
_,out,_ = ssh.exec_command("/bin/gunzip /usr/lib/libcrypto.so.1.0.2.gz")
|
||||
out = out.channel.recv_exit_status()
|
||||
if out != 0:
|
||||
raise Exception("libcrypto could not be decompressed on the tablet [%d]" % out)
|
||||
# _,out,_ = ssh.exec_command("/bin/gunzip /usr/lib/libcrypto.so.1.0.2.gz")
|
||||
# out = out.channel.recv_exit_status()
|
||||
# if out != 0:
|
||||
# raise Exception("libcrypto could not be decompressed on the tablet [%d]" % out)
|
||||
from stat import S_IXUSR
|
||||
sftp.chmod('/usr/lib/libcrypto.so.1.0.2', S_IXUSR)
|
||||
log.info("Installation successful!")
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Reference in a new issue