be more verbose in template expansion

This commit is contained in:
Antoine Beaupré 2008-04-14 03:10:58 +00:00
parent 6bedb59def
commit 21f2254a00
1 changed files with 3 additions and 0 deletions

View File

@ -160,12 +160,15 @@ tar -zcf "$BACKUP_FILE" -C / $BACKUPS 2>/dev/null || true
#######################################################################
# Expand templates in the right place
#
echo -n "Expanding variables in configuration files:"
for file in $CONFIG_FILES; do
TEMPLATE="$TEMPLATE_DIR/${file##etc/}"
echo -n " $file"
if [ -f "$TEMPLATE" ]; then
sed -f "$SED_SCRIPT" < $TEMPLATE > /$file
fi
done
echo "."
rm -f $SED_SCRIPT
#######################################################################