From 0c146315027caecd97dbb89148c31f397bb45be8 Mon Sep 17 00:00:00 2001 From: olenepal-admin <54300561+olenepal-admin@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:20:28 +0545 Subject: [PATCH 1/2] Create install-epaath-english.sh English Only E-Paath --- services/install-epaath-english.sh | 71 ++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 services/install-epaath-english.sh diff --git a/services/install-epaath-english.sh b/services/install-epaath-english.sh new file mode 100644 index 000000000..f1ee773bc --- /dev/null +++ b/services/install-epaath-english.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +function install { + # create service directory + mkdir -p /srv/epaath + + # create yml(s) + { + echo "version: '3'" + echo "services:" + echo " epaath:" + echo " image: olenepal/epaath:english-arm" + echo " ports:" + echo " - 8100:80" + } > /srv/epaath/epaath-english.yml + + # add autorun + { + echo "epaath_autorun=true" + echo + echo "if [ \"\$_autorun\" = true ]; then" + echo " treehouses services epaath up" + echo "fi" + echo + echo + } > /srv/epaath/autorun +} + +# environment var +function uses_env { + echo false +} + +# add supported arch(es) +function supported_arches { + echo "armv7l" +} + +# add port(s) +function get_ports { + echo "8100" +} + +# add size (in MB) +function get_size { + echo "5555" +} + +# add description +function get_description { + echo "E-Paath is a collection of digital interactive learning activities for grade 1 - 8. \"epaath\" " +} + +# add info +function get_info { + echo + echo "E-Paath is a collection of digital interactive learning activities for grade 1 - 8" +} + +# add svg icon +function get_icon { + cat < + + + + + + +EOF +} From 223ad6da509051b1b25a50342707a33e498b82ad Mon Sep 17 00:00:00 2001 From: yibo <7483137+xyb994@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:13:06 -0400 Subject: [PATCH 2/2] Update install-epaath-english.sh --- services/install-epaath-english.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/services/install-epaath-english.sh b/services/install-epaath-english.sh index f1ee773bc..f00c42ee5 100644 --- a/services/install-epaath-english.sh +++ b/services/install-epaath-english.sh @@ -2,7 +2,7 @@ function install { # create service directory - mkdir -p /srv/epaath + mkdir -p /srv/epaath-english # create yml(s) { @@ -12,18 +12,18 @@ function install { echo " image: olenepal/epaath:english-arm" echo " ports:" echo " - 8100:80" - } > /srv/epaath/epaath-english.yml + } > /srv/epaath-english/epaath-english.yml # add autorun { echo "epaath_autorun=true" echo echo "if [ \"\$_autorun\" = true ]; then" - echo " treehouses services epaath up" + echo " treehouses services epaath-english up" echo "fi" echo echo - } > /srv/epaath/autorun + } > /srv/epaath-english/autorun } # environment var @@ -48,12 +48,11 @@ function get_size { # add description function get_description { - echo "E-Paath is a collection of digital interactive learning activities for grade 1 - 8. \"epaath\" " + echo "E-Paath is a collection of digital interactive learning activities for grade 1 - 8." } # add info function get_info { - echo echo "E-Paath is a collection of digital interactive learning activities for grade 1 - 8" }