Commit 21f2254a authored by Antoine Beaupré's avatar Antoine Beaupré

be more verbose in template expansion

parent 6bedb59d
...@@ -160,12 +160,15 @@ tar -zcf "$BACKUP_FILE" -C / $BACKUPS 2>/dev/null || true ...@@ -160,12 +160,15 @@ tar -zcf "$BACKUP_FILE" -C / $BACKUPS 2>/dev/null || true
####################################################################### #######################################################################
# Expand templates in the right place # Expand templates in the right place
# #
echo -n "Expanding variables in configuration files:"
for file in $CONFIG_FILES; do for file in $CONFIG_FILES; do
TEMPLATE="$TEMPLATE_DIR/${file##etc/}" TEMPLATE="$TEMPLATE_DIR/${file##etc/}"
echo -n " $file"
if [ -f "$TEMPLATE" ]; then if [ -f "$TEMPLATE" ]; then
sed -f "$SED_SCRIPT" < $TEMPLATE > /$file sed -f "$SED_SCRIPT" < $TEMPLATE > /$file
fi fi
done done
echo "."
rm -f $SED_SCRIPT rm -f $SED_SCRIPT
####################################################################### #######################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment