1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-21 18:03:54 +03:00

fixes for x2go & uds actor on python3

This commit is contained in:
Adolfo Gómez García 2019-07-11 11:08:46 +02:00
parent 45aa2e92ac
commit e7fb7064e3
4 changed files with 11 additions and 5 deletions

View File

@ -2,7 +2,7 @@ udsactor (3.0.0) stable; urgency=medium
* Upgraded to 3.0.0 release * Upgraded to 3.0.0 release
-- Adolfo Gómez García <agomez@virtualcable.es> Wed, 10 Jlu 2019 9:24:10 +0200 -- Adolfo Gómez García <agomez@virtualcable.es> Wed, 10 Jul 2019 9:24:10 +0200
udsactor (2.2.1) stable; urgency=medium udsactor (2.2.1) stable; urgency=medium

View File

@ -1,3 +1,9 @@
udsclient (3.0.0) stable; urgency=medium
* Upgraded to 3.0.0 release
-- Adolfo Gómez García <agomez@virtualcable.es> Wed, 10 Jul 2019 9:24:10 +0200
udsclient (2.2.1) stable; urgency=medium udsclient (2.2.1) stable; urgency=medium
* Upgraded to 2.2.1 release * Upgraded to 2.2.1 release

View File

@ -1,2 +1,2 @@
udsclient_2.2.1_all.deb admin optional udsclient_3.0.0_all.deb admin optional
udsclient_2.2.1_amd64.buildinfo admin optional udsclient_3.0.0_amd64.buildinfo admin optional

View File

@ -32,7 +32,7 @@ def updateAuthorizedKeys(user, pubKey):
sshFolder = '{}/.ssh'.format(home) sshFolder = '{}/.ssh'.format(home)
if not os.path.exists(sshFolder): if not os.path.exists(sshFolder):
try: try:
os.makedirs(sshFolder, 0o0700) os.makedirs(sshFolder, 0o700)
os.chown(sshFolder, uid, -1) os.chown(sshFolder, uid, -1)
except OSError as e: except OSError as e:
if e.errno != errno.EEXIST: if e.errno != errno.EEXIST:
@ -56,7 +56,7 @@ def updateAuthorizedKeys(user, pubKey):
# Ensure access is correct # Ensure access is correct
os.chown(authorizedKeys, uid, -1) os.chown(authorizedKeys, uid, -1)
os.chmod(authorizedKeys, 0o0600) os.chmod(authorizedKeys, 0o600)
# Done # Done