2

Move_domain.sh: optimize httpd rewrite


Avatar
Zerg

In move_domain.sh, at the end of update_da_settings() function, there is:

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

It takes a lot of time to rewrite all files, which results in long downtime of domain that is being moved. Only 2 needs to be rewritten:

echo "action=rewrite&value=httpd&user=${OLD_USER}" >> /usr/local/directadmin/data/task.queue
echo "action=rewrite&value=httpd&user=${NEW_USER}" >> /usr/local/directadmin/data/task.queue

A