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
|
# @Author: KevinMidboe
|
||||||
# @Date: 2017-04-12 23:27:51
|
# @Date: 2017-04-12 23:27:51
|
||||||
# @Last Modified by: KevinMidboe
|
# @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 sys, sqlite3, json, os
|
||||||
import logging
|
import logging
|
||||||
@@ -45,8 +45,8 @@ class episode(object):
|
|||||||
|
|
||||||
def fix_ownership(path):
|
def fix_ownership(path):
|
||||||
# TODO find this from username from config
|
# TODO find this from username from config
|
||||||
uid = int(os.environ.get('1000'))
|
uid = 1000
|
||||||
gid = int(os.environ.get('105'))
|
gid = 105
|
||||||
os.chown(path, uid, gid)
|
os.chown(path, uid, gid)
|
||||||
|
|
||||||
def moveStray(strayId):
|
def moveStray(strayId):
|
||||||
|
|||||||
Reference in New Issue
Block a user