bootstrap-vz/bootstrapvz/common/tasks/security.py

13 lines
300 B
Python
Raw Normal View History

from bootstrapvz.base import Task
from .. import phases
2013-07-01 23:41:22 +02:00
class EnableShadowConfig(Task):
description = 'Enabling shadowconfig'
phase = phases.system_modification
@classmethod
def run(cls, info):
from ..tools import log_check_call
log_check_call(['chroot', info.root, 'shadowconfig', 'on'])