diff --git a/builds/any/installer/sample-postinstall.py b/builds/any/installer/sample-postinstall.py new file mode 100644 index 00000000..230013c9 --- /dev/null +++ b/builds/any/installer/sample-postinstall.py @@ -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 diff --git a/builds/any/installer/sample-postinstall.sh b/builds/any/installer/sample-postinstall.sh new file mode 100644 index 00000000..0bc0938c --- /dev/null +++ b/builds/any/installer/sample-postinstall.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +rootdir=$1; shift + +echo "Hello from postinstall" +echo "Chroot is $rootdir" + +exit 0 diff --git a/builds/any/installer/sample-preinstall.py b/builds/any/installer/sample-preinstall.py new file mode 100644 index 00000000..77148225 --- /dev/null +++ b/builds/any/installer/sample-preinstall.py @@ -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 diff --git a/builds/any/installer/sample-preinstall.sh b/builds/any/installer/sample-preinstall.sh new file mode 100644 index 00000000..daf128a6 --- /dev/null +++ b/builds/any/installer/sample-preinstall.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +rootdir=$1; shift + +echo "Hello from preinstall" +echo "Chroot is $rootdir" + +exit 0