This commit is contained in:
BoHung Chiu 2022-12-02 13:20:01 +08:00
parent 512970d590
commit 66412d3e40
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ class SiteServer
if self.domain_name != '' && self.domain_names.length !=0 if self.domain_name != '' && self.domain_names.length !=0
self.domain_name = '' self.domain_name = ''
end end
if !self.new_record? && self.account_changed?
SiteServerFileBackup.where(:backup_dir=>"/home/#{self.account_was}").update_all(:backup_dir=>"/home/{{user_name}}")
end
tmp_site_constructs = site_constructs tmp_site_constructs = site_constructs
need_change = false need_change = false
if self.enable_redirect_default_domain_changed? if self.enable_redirect_default_domain_changed?