Skip to content

Commit 2ccc867

Browse files
committed
Write Legacy vars to file instead
1 parent 11205be commit 2ccc867

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

install/assets/functions/10-db-backup

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,33 +112,33 @@ bootstrap_variables() {
112112
if [ -n "${ENABLE_CHECKSUM}" ]; then
113113
print_warn "Deprecated and unsupported variable 'ENABLE_CHECKSUM' detected - Please upgrade your variables as they will be removed in version 4.3.0"
114114
if var_false "${ENABLE_CHECKSUM}" ; then
115-
DEFAULT_CHECKSUM=NONE
115+
echo "DEFAULT_CHECKSUM=NONE" >> "${backup_instance_vars}"
116116
fi
117117
fi
118118

119119
if [ -n "${DB_DUMP_BEGIN}" ]; then
120120
print_warn "Deprecated and unsupported variable 'DB_DUMP_BEGIN' detected - Please upgrade your variables as they will be removed in version 4.3.0"
121-
DEFAULT_BACKUP_BEGIN=${DB_DUMP_BEGIN}
121+
echo "DEFAULT_BACKUP_BEGIN=${DB_DUMP_BEGIN}" >> "${backup_instance_vars}"
122122
fi
123123

124124
if [ -n "${DB_DUMP_FREQ}" ]; then
125125
print_warn "Deprecated and unsupported variable 'DB_DUMP_FREQ' detected - Please upgrade your variables as they will be removed in version 4.3.0"
126-
DEFAULT_BACKUP_INTERVAL=${DB_DUMP_INTERVAL}
126+
echo "DEFAULT_BACKUP_INTERVAL=${DB_DUMP_INTERVAL}" >> "${backup_instance_vars}"
127127
fi
128128

129129
if [ -n "${DB_DUMP_TARGET}" ]; then
130130
print_warn "Deprecated and unsupported variable 'DB_DUMP_TARGET' detected - Please upgrade your variables as they will be removed in version 4.3.0"
131-
DEFAULT_FILESYSTEM_PATH="${DB_DUMP_TARGET}"
131+
echo "DEFAULT_FILESYSTEM_PATH=${DB_DUMP_TARGET}" >> "${backup_instance_vars}"
132132
fi
133133

134134
if [ -n "${DB_DUMP_TARGET_ARCHIVE}" ]; then
135135
print_warn "Deprecated and unsupported variable 'DB_DUMP_TARGET_ACRHIVE' detected - Please upgrade your variables as they will be removed in version 4.3.0"
136-
DEFAULT_FILESYSTEM_ARCHIVE_PATH="${DB_DUMP_TARGET_ARCHIVE}"
136+
echo "DEFAULT_FILESYSTEM_ARCHIVE_PATH=${DB_DUMP_TARGET_ARCHIVE}" >> "${backup_instance_vars}"
137137
fi
138138

139139
if [ -n "${EXTRA_DUMP_OPTS}" ]; then
140140
print_warn "Deprecated and unsupported variable 'EXTRA_DUMP_OPTS' detected - Please upgrade your variables as they will be removed in version 4.3.0"
141-
DEFAULT_EXTRA_BACKUP_OPTS="${EXTRA_DUMP_OPTS}"
141+
echo "DEFAULT_EXTRA_BACKUP_OPTS=${EXTRA_DUMP_OPTS}" >> "${backup_instance_vars}"
142142
fi
143143
##
144144

@@ -159,8 +159,10 @@ bootstrap_variables() {
159159

160160
transform_backup_instance_variable "${backup_instance_number}" ARCHIVE_TIME backup_job_archive_time
161161
transform_backup_instance_variable "${backup_instance_number}" AUTH backup_job_db_auth
162+
set -x
162163
transform_backup_instance_variable "${backup_instance_number}" BACKUP_BEGIN backup_job_backup_begin
163164
transform_backup_instance_variable "${backup_instance_number}" BACKUP_INTERVAL backup_job_backup_interval
165+
set +x
164166
transform_backup_instance_variable "${backup_instance_number}" BACKUP_LOCATION backup_job_backup_location
165167
transform_backup_instance_variable "${backup_instance_number}" BLACKOUT_BEGIN backup_job_snapshot_blackout_start
166168
transform_backup_instance_variable "${backup_instance_number}" BLACKOUT_END backup_job_snapshot_blackout_finish

0 commit comments

Comments
 (0)