Sample pre/post scripts and plugins, needs docs

This commit is contained in:
Carl D. Roth
2016-11-16 18:54:54 -08:00
parent 3149627459
commit 5aa3212f64
4 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
"""sample-postinstall.py
"""
import onl.install.Plugin
class Plugin(onl.install.Plugin.Plugin):
def run(self):
self.log.info("hello from postinstall plugin")
return 0

View File

@@ -0,0 +1,8 @@
#!/bin/sh
rootdir=$1; shift
echo "Hello from postinstall"
echo "Chroot is $rootdir"
exit 0

View File

@@ -0,0 +1,11 @@
"""sample-preinstall.py
"""
import onl.install.Plugin
class Plugin(onl.install.Plugin.Plugin):
def run(self):
self.log.info("hello from preinstall plugin")
return 0

View File

@@ -0,0 +1,8 @@
#!/bin/sh
rootdir=$1; shift
echo "Hello from preinstall"
echo "Chroot is $rootdir"
exit 0