mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
16 lines
464 B
Python
16 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'])
|