Ajout de la version alpine

This commit is contained in:
root
2020-08-06 18:26:12 +02:00
parent f9e7903a4a
commit 219f90e351
22 changed files with 693 additions and 0 deletions

7
debian/service/20-cron/run vendored Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
. /etc/service/template
msglog green "Starting Cron..."
# Touch cron files to fix 'NUMBER OF HARD LINKS > 1' issue. See https://github.com/phusion/baseimage-docker/issues/198
touch -c /etc/crontab /etc/cron.*/* /var/spool/cron/crontabs/*
exec /usr/sbin/cron -f

5
debian/service/30-apache2/run vendored Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
. /etc/service/template
msglog green "Starting Apache..."
exec apache2-foreground

6
debian/service/90-glpi_init/run vendored Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. /etc/service/template
msglog green "Starting glpi_init.sh..."
/root/glpi_init.sh
sleep infinity

19
debian/service/template vendored Normal file
View File

@ -0,0 +1,19 @@
NORMAL='\e[39m'
RED='\e[31m'
GREEN='\e[32m'
msglog() {
case "${1}" in
green)
TEXT_COLOR="${GREEN}"
;;
red)
TEXT_COLOR="${RED}"
;;
normal)
TEXT_COLOR="${NORMAL}"
;;
esac
DATE=$(date '+%Y %b %d %H:%M:%S')
echo ${DATE} ${TEXT_COLOR}${2}${NORMAL}
}