Opps, changed to use the int value of uid and gid, not looking up the int value and then converting to int. Does not make sense.
This commit is contained in:
		| @@ -3,7 +3,7 @@ | ||||
| # @Author: KevinMidboe | ||||
| # @Date:   2017-04-12 23:27:51 | ||||
| # @Last Modified by:   KevinMidboe | ||||
| # @Last Modified time: 2017-06-27 15:25:04 | ||||
| # @Last Modified time: 2017-06-27 15:29:47 | ||||
|  | ||||
| import sys, sqlite3, json, os | ||||
| import logging | ||||
| @@ -45,8 +45,8 @@ class episode(object): | ||||
|  | ||||
| def fix_ownership(path): | ||||
| 	# TODO find this from username from config | ||||
| 	uid = int(os.environ.get('1000')) | ||||
| 	gid = int(os.environ.get('105')) | ||||
| 	uid = 1000 | ||||
| 	gid = 105 | ||||
| 	os.chown(path, uid, gid) | ||||
|  | ||||
| def moveStray(strayId): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user