mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 07:16:21 +00:00
Eliminar el punto final de los dominios
This commit is contained in:
parent
1a56d19457
commit
955604b05a
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ class AddHostnameToDeploys < ActiveRecord::Migration[6.1]
|
|||
site.name = site.name.split('.', 2).first if site.name.include?('.')
|
||||
|
||||
site.deploys.find_each do |deploy|
|
||||
deploy.update_columns hostname_tmp: (deploy.values[:hostname] || deploy.values[:onion] || deploy.hostname || "#{SecureRandom.hex}.invalid")
|
||||
hostname = (deploy.values[:hostname] || deploy.values[:onion] || deploy.hostname || "#{SecureRandom.hex}.invalid").dup.sub(/\.\z/, '')
|
||||
deploy.update_columns hostname_tmp: hostname
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue