mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
15 lines
464 B
Python
15 lines
464 B
Python
from base import Task
|
|
from common import phases
|
|
from common.tasks.apt import AptUpgrade
|
|
from common.tools import sed_i
|
|
import os
|
|
|
|
|
|
class DoSeds(Task):
|
|
description = 'Sedding files'
|
|
phase = phases.system_modification
|
|
after = [AptUpgrade]
|
|
def run(self, info):
|
|
|
|
chroot_path = os.path.join(info.root, info.manifest.plugins['sed']['file'])
|
|
sed_i(chroot_path, info.manifest.plugins['sed']['find'], info.manifest.plugins['sed']['replace'])
|