#!/bin/bash set -e eval $(n4d-vars getvalues SRV_IP) case $1 in install | configure) ln -s /usr/share/llx-netinstall/templates /var/www/preseed || true a2ensite preseed || true #service apache2 reload || true # if [ ! -d /var/lib/dnsmasq/config ]; then # mkdir -p /var/lib/dnsmasq/conf # fi #INTERNA=$(n4d-vars getvalues INTERNAL_DOMAIN | cut -d"'" -f2) # if [ -z $INTERNA ]; then # echo "Error al obtener INTERNAL_DOMAIN" # echo "Se deja sin configurar dnsmasq para preseed" # else # echo "cname=preseed."$INTERNA","$HOSTNAME"."$INTERNA > /var/lib/dnsmasq/config/cname-preseed # service dnsmasq restart # fi ;; upgrade) ;; *) echo "[DEBUG] Unknow action ..." ;; esac #DEBHELPER# exit 0