file transfer: return rights to pi:pi after file receive

This commit is contained in:
Arthur Golubtsov
2019-10-29 16:03:31 +03:00
parent 34999302f7
commit 167fafbbb0

View File

@@ -383,7 +383,7 @@ class ConnectionManager(object):
logger.error("File {} can not be written due error: {}".format(filepath, error))
else:
logger.info("File {} successfully received ".format(filepath))
os.system("chown -R pi:pi /home/pi/clever-show/")
os.system("chown pi:pi {}".format(filepath))
def write(self):
with self._send_lock: