Skip to content
  • Grazyna Jaworska's avatar
    Fix the check for parent site existence - we should look for drush alias file... · 8180c5d7
    Grazyna Jaworska authored
    Fix the check for parent site existence - we should look for drush alias file and not a vhost (which can be dummy subdir vhost).
    
    Running the parent site re-verify more than once (which would happen when there are two or more aliases) via backend while updating subdir site configuration results with semi-disaster, since it writes parent site db credentials into subdir site config. Not nice. But when auto-running this re-verify via frontend with hosting-task, it results with total disaster - it destroys hostmaster database! The workaround is to use a counter in the aliases loop, to make sure that we run parent site re-verify to update its vhost and add include line for sites in subdirs, if they exist, only once. By the way, DigitalOcean backups s*cks!
    8180c5d7