2023-02-17 09:16:19 +01:00
|
|
|
02firstboot = $(CHROOT)/usr/local/bin/02firstboot.start
|
|
|
|
cert-renew.sh = $(CHROOT)/etc/ssl/cert-renew.sh
|
2023-02-24 13:40:39 +01:00
|
|
|
isl-backup-cleanup.sh = $(CHROOT)/usr/local/bin/isl-backup-cleanup.sh
|
2023-02-17 09:16:19 +01:00
|
|
|
install_confproxy = $(CHROOT)/opt/confproxy
|
|
|
|
|
|
|
|
CONFPROXY_URL = https://www.islonline.com/system/installer_latest_linux64
|
|
|
|
|
2023-02-24 13:40:39 +01:00
|
|
|
systemd-units: appliance/cert-renew.service appliance/cert-renew.timer confproxy/isl-backup-cleanup.service confproxy/isl-backup-cleanup.timer
|
|
|
|
cp appliance/cert-renew.service appliance/cert-renew.timer confproxy/isl-backup-cleanup.service confproxy/isl-backup-cleanup.timer $(CHROOT)/etc/systemd/system/
|
2023-02-17 09:16:19 +01:00
|
|
|
|
|
|
|
$(02firstboot): appliance/02firstboot.start
|
|
|
|
mkdir -p $(CHROOT)/usr/local/bin
|
|
|
|
cp $< $@
|
|
|
|
touch $(CHROOT)/02firstboot
|
|
|
|
|
|
|
|
$(cert-renew.sh): appliance/cert-renew.sh
|
|
|
|
mkdir -p $(CHROOT)/etc/ssl
|
|
|
|
cp $< $@
|
|
|
|
|
2023-02-24 13:40:39 +01:00
|
|
|
$(isl-backup-cleanup.sh): confproxy/isl-backup-cleanup.sh
|
|
|
|
mkdir -p $(CHROOT)/usr/local/bin
|
|
|
|
cp $< $@
|
|
|
|
|
2023-02-17 09:16:19 +01:00
|
|
|
$(install_confproxy):
|
|
|
|
# user islcp with fixed uid 950
|
|
|
|
-RUN useradd --system --comment="ISL ConfProxy User" --home-dir="/opt/confproxy" --shell="/bin/sh" --no-create-home --uid 950 --user-group islcp
|
|
|
|
# virtual-appliance starts the build environment with sh instead of systemd as pid1; skip start service
|
|
|
|
RUN sh -c 'wget $(CONFPROXY_URL) -O /tmp/confproxy-installer.bin && sed -e "s:\"systemd\":\"sh\":g" -e "s:status \"Starting ISL Conference Proxy (confproxy.service)\":exit 0:" -i /tmp/confproxy-installer.bin && sh /tmp/confproxy-installer.bin'
|
2023-02-24 13:40:39 +01:00
|
|
|
# sometimes ConfProxy also looks into the alternative installation directory /var/confproxy (bug)
|
|
|
|
ln -sf /opt/confproxy $(CHROOT)/var/confproxy
|
2023-02-17 09:16:19 +01:00
|
|
|
|
|
|
|
preinstall:
|
|
|
|
|
2023-02-24 13:40:39 +01:00
|
|
|
postinstall: systemd-units $(02firstboot) $(install_confproxy) $(cert-renew.sh) $(isl-backup-cleanup.sh)
|