be more verbose in template expansion
This commit is contained in:
parent
6bedb59def
commit
21f2254a00
|
@ -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
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
Loading…
Reference in New Issue