if [ -f "$domain_file" ]; then
# don't destroy, just shuffle.
\mv -f "$domain_file" "/tmp/$(basename ${domain_file})-old-${RANDOM}"
if [ -f "$domain_file" ]; then
# don't destroy, just shuffle.
\mv -f "$domain_file" "/tmp/$(basename ${domain_file})-old-${RANDOM}"
# our personalized configuration approach wants the real owner to own the file.
chown "$(logname):$(logname)" $domain_file
# our personalized configuration approach wants the real owner to own the file.
chown "$(logname):$(logname)" $domain_file
if [ -f "$site_config" ]; then
# don't destroy, just shuffle.
\mv -f "$site_config" "/tmp/$(basename ${site_config})-old-${RANDOM}"
if [ -f "$site_config" ]; then
# don't destroy, just shuffle.
\mv -f "$site_config" "/tmp/$(basename ${site_config})-old-${RANDOM}"
# reassert the user's ownership of any directories we might have just created.
chown $(logname) "$chow_path"
# reassert the user's ownership of any directories we might have just created.
chown $(logname) "$chow_path"