deafile=$1
shift
-if [ $# -ne 0 ]; then
- comment="$@"
-fi
-
if [ ! -f "$deafile" ]; then
error_exit "Can't find $deafile"
fi
fuel settings --env $envId --download --dir $tmpDir > /dev/null || \
error_exit "Could not get settings"
+
fuel network --env $envId --download --dir $tmpDir > /dev/null || \
error_exit "Could not get network settings"
cp $tmpDir/network_${envId}.yaml network_before.yaml
+
+# Transplant network settings
transplant_network_settings.py $tmpDir/network_${envId}.yaml $deafile || \
error_exit "Could not transplant network settings"
fuel network --env $envId --upload --dir $tmpDir || \
error_exit "Could not update network settings"
cp $tmpDir/network_${envId}.yaml network_after.yaml
+# Transplant settings
cp $tmpDir/settings_${envId}.yaml settings_before.yaml
transplant_settings.py $tmpDir/settings_${envId}.yaml $deafile || \
error_exit "Could not transplant settings"