#!/bin/bash if [ ! -z $new_tier_id ]; then sed -ie '/^TIER_ID=.*/d' /etc/environment echo "TIER_ID=$new_tier_id" >>/etc/environment fi