瀏覽代碼

add PUID and PGID as config options in archivebox

Nick Sweeting 3 年之前
父節點
當前提交
c245d36e44
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      archivebox/config.py

+ 2 - 0
archivebox/config.py

@@ -65,6 +65,8 @@ CONFIG_SCHEMA: Dict[str, ConfigDefaultDict] = {
         'USE_COLOR':                {'type': bool,  'default': lambda c: c['IS_TTY']},
         'SHOW_PROGRESS':            {'type': bool,  'default': lambda c: (c['IS_TTY'] and platform.system() != 'Darwin')},  # progress bars are buggy on mac, disable for now
         'IN_DOCKER':                {'type': bool,  'default': False},
+        'PUID':                     {'type': int,   'default': os.getuid()},
+        'PGID':                     {'type': int,   'default': os.getgid()},
         # TODO: 'SHOW_HINTS':       {'type:  bool,  'default': True},
     },