bootstrap-vz/bootstrapvz/common/tasks/security.py
2014-05-03 16:13:07 +02:00

12 lines
300 B
Python

from bootstrapvz.base import Task
from .. import phases
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'])