From c31f855ebc2c5ad6dd2106254fd71ceb813e0dd0 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Fri, 22 Jul 2016 13:29:15 +0200 Subject: [PATCH] add inverter container --- build/boot/inverter.sh | 3 +++ build/make/inverter.mk | 3 +++ build/runit/inverter | 3 +++ build/runit/logrotate | 3 +++ build/scripts/inverter.sh | 6 ++++++ build/scripts/logrotate.sh | 1 + 6 files changed, 19 insertions(+) create mode 100644 build/boot/inverter.sh create mode 100644 build/make/inverter.mk create mode 100644 build/runit/inverter create mode 100644 build/runit/logrotate create mode 100644 build/scripts/inverter.sh create mode 100644 build/scripts/logrotate.sh diff --git a/build/boot/inverter.sh b/build/boot/inverter.sh new file mode 100644 index 0000000..0743d71 --- /dev/null +++ b/build/boot/inverter.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +/opt/inverter/inverter.php install schedule diff --git a/build/make/inverter.mk b/build/make/inverter.mk new file mode 100644 index 0000000..aa59d6e --- /dev/null +++ b/build/make/inverter.mk @@ -0,0 +1,3 @@ +inverter: base php + $(call script,$@) + $(call boot,02,$@) diff --git a/build/runit/inverter b/build/runit/inverter new file mode 100644 index 0000000..285a331 --- /dev/null +++ b/build/runit/inverter @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +/opt/inverter/inverter.php diff --git a/build/runit/logrotate b/build/runit/logrotate new file mode 100644 index 0000000..068b91b --- /dev/null +++ b/build/runit/logrotate @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +/usr/sbin/logrotate diff --git a/build/scripts/inverter.sh b/build/scripts/inverter.sh new file mode 100644 index 0000000..712baa8 --- /dev/null +++ b/build/scripts/inverter.sh @@ -0,0 +1,6 @@ +## Dependencies +apt_install_permanent libappconfig-perl libdevice-serialport-perl rrdtool +pear install -f System_Daemon + +## Inverter project +#git clone ... diff --git a/build/scripts/logrotate.sh b/build/scripts/logrotate.sh new file mode 100644 index 0000000..3edcc73 --- /dev/null +++ b/build/scripts/logrotate.sh @@ -0,0 +1 @@ +apt_install_permanent logrotate