mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-09 00:31:47 +00:00
Sample pre/post scripts and plugins, needs docs
This commit is contained in:
11
builds/any/installer/sample-postinstall.py
Normal file
11
builds/any/installer/sample-postinstall.py
Normal 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
|
||||
8
builds/any/installer/sample-postinstall.sh
Normal file
8
builds/any/installer/sample-postinstall.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
rootdir=$1; shift
|
||||
|
||||
echo "Hello from postinstall"
|
||||
echo "Chroot is $rootdir"
|
||||
|
||||
exit 0
|
||||
11
builds/any/installer/sample-preinstall.py
Normal file
11
builds/any/installer/sample-preinstall.py
Normal 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
|
||||
8
builds/any/installer/sample-preinstall.sh
Normal file
8
builds/any/installer/sample-preinstall.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
rootdir=$1; shift
|
||||
|
||||
echo "Hello from preinstall"
|
||||
echo "Chroot is $rootdir"
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user