Issue with default site after imported from a full backup.
This commit is contained in:
Cristhian Martínez Ochoa 2022-05-29 16:11:14 -06:00
parent 1e5d3e8d1b
commit d228de6ba3

View file

@ -1001,7 +1001,7 @@ import_server() {
[[ $import == "full" && $(conf_read_exported smtp) == "true" && -s /var/www/webinoly_backup_smtp ]] && smtp_backup_recovery
# Default-Site and Tools Site Settings! - should be here after sites are extracted and only if sites are imported.
if [[ $import =~ ^(stack|full)$ ]]; then
if [[ $import =~ ^(sites|stack|full)$ ]]; then
if [[ -f /etc/nginx/sites-available/$(conf_read_exported default-site) ]]; then
remove_nginx_default_server $(conf_read_exported default-site)
sudo webinoly -default-site=$(conf_read_exported default-site)