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}"
- chown $(logname) "$chow_path"
- test_or_die "changing ownership to user failed on the path: $chow_path"
+ chown "$(logname):$(logname)" "$chow_path"
+ exit_on_error "changing ownership to user failed on the path: $chow_path"