From 7f14f647629f49c39fb8a82b991187f5428b13bb Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Tue, 13 Jun 2017 05:11:50 +0200 Subject: [PATCH] Set gid and uid to static vars --- moveSeasoned.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moveSeasoned.py b/moveSeasoned.py index caaca70..4f79b43 100755 --- a/moveSeasoned.py +++ b/moveSeasoned.py @@ -45,7 +45,7 @@ class episode(object): def fix_ownership(path): uid = int(os.environ.get('SUDO_UID')) gid = int(os.environ.get('SUDO_GID')) - os.chown(path, uid, gid) + os.chown(path, '1000', '1000') def moveStray(strayId): ep = episode(strayId) @@ -63,4 +63,4 @@ def moveStray(strayId): os.rmdir(ep.typeDir('parent')) if __name__ == '__main__': - moveStray(sys.argv[-1]) \ No newline at end of file + moveStray(sys.argv[-1])