Update ejabberd to 19.02
This commit is contained in:
parent
18b12a1dc4
commit
2cd85afb28
@ -571,3 +571,74 @@ CREATE TABLE push_session (
|
|||||||
);
|
);
|
||||||
|
|
||||||
CREATE UNIQUE INDEX i_push_session_susn ON push_session USING btree (server_host, username, service, node);
|
CREATE UNIQUE INDEX i_push_session_susn ON push_session USING btree (server_host, username, service, node);
|
||||||
|
|
||||||
|
CREATE TABLE mix_channel (
|
||||||
|
channel text NOT NULL,
|
||||||
|
service text NOT NULL,
|
||||||
|
username text NOT NULL,
|
||||||
|
domain text NOT NULL,
|
||||||
|
jid text NOT NULL,
|
||||||
|
hidden boolean NOT NULL,
|
||||||
|
hmac_key text NOT NULL,
|
||||||
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX i_mix_channel ON mix_channel (channel, service);
|
||||||
|
CREATE INDEX i_mix_channel_serv ON mix_channel (service);
|
||||||
|
|
||||||
|
CREATE TABLE mix_participant (
|
||||||
|
channel text NOT NULL,
|
||||||
|
service text NOT NULL,
|
||||||
|
username text NOT NULL,
|
||||||
|
domain text NOT NULL,
|
||||||
|
jid text NOT NULL,
|
||||||
|
id text NOT NULL,
|
||||||
|
nick text NOT NULL,
|
||||||
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX i_mix_participant ON mix_participant (channel, service, username, domain);
|
||||||
|
CREATE INDEX i_mix_participant_chan_serv ON mix_participant (channel, service);
|
||||||
|
|
||||||
|
CREATE TABLE mix_subscription (
|
||||||
|
channel text NOT NULL,
|
||||||
|
service text NOT NULL,
|
||||||
|
username text NOT NULL,
|
||||||
|
domain text NOT NULL,
|
||||||
|
node text NOT NULL,
|
||||||
|
jid text NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX i_mix_subscription ON mix_subscription (channel, service, username, domain, node);
|
||||||
|
CREATE INDEX i_mix_subscription_chan_serv_ud ON mix_subscription (channel, service, username, domain);
|
||||||
|
CREATE INDEX i_mix_subscription_chan_serv_node ON mix_subscription (channel, service, node);
|
||||||
|
CREATE INDEX i_mix_subscription_chan_serv ON mix_subscription (channel, service);
|
||||||
|
|
||||||
|
CREATE TABLE mix_pam (
|
||||||
|
username text NOT NULL,
|
||||||
|
server_host text NOT NULL,
|
||||||
|
channel text NOT NULL,
|
||||||
|
service text NOT NULL,
|
||||||
|
id text NOT NULL,
|
||||||
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX i_mix_pam ON mix_pam (username, server_host, channel, service);
|
||||||
|
CREATE INDEX i_mix_pam_us ON mix_pam (username, server_host);
|
||||||
|
|
||||||
|
CREATE TABLE mqtt_pub (
|
||||||
|
username text NOT NULL,
|
||||||
|
server_host text NOT NULL,
|
||||||
|
resource text NOT NULL,
|
||||||
|
topic text NOT NULL,
|
||||||
|
qos smallint NOT NULL,
|
||||||
|
payload bytea NOT NULL,
|
||||||
|
payload_format smallint NOT NULL,
|
||||||
|
content_type text NOT NULL,
|
||||||
|
response_topic text NOT NULL,
|
||||||
|
correlation_data bytea NOT NULL,
|
||||||
|
user_properties bytea NOT NULL,
|
||||||
|
expiry bigint NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX i_mqtt_topic_server ON mqtt_pub (topic, server_host);
|
||||||
|
@ -20,5 +20,4 @@ chef_version '>= 12.14' if respond_to?(:chef_version)
|
|||||||
# source_url 'https://github.com/<insert_org_here>/kosmos-ejabberd'
|
# source_url 'https://github.com/<insert_org_here>/kosmos-ejabberd'
|
||||||
|
|
||||||
depends "kosmos-postgresql"
|
depends "kosmos-postgresql"
|
||||||
depends "database"
|
|
||||||
depends "backup"
|
depends "backup"
|
||||||
|
@ -12,12 +12,12 @@ cookbook_file "#{Chef::Config[:file_cache_path]}/pg.new.sql" do
|
|||||||
mode "0664"
|
mode "0664"
|
||||||
end
|
end
|
||||||
|
|
||||||
ejabberd_version = "18.12.1"
|
ejabberd_version = "19.02"
|
||||||
package_path = "#{Chef::Config['file_cache_path']}/ejabberd_#{ejabberd_version}-0_amd64.deb"
|
package_path = "#{Chef::Config['file_cache_path']}/ejabberd_#{ejabberd_version}-0_amd64.deb"
|
||||||
|
|
||||||
remote_file package_path do
|
remote_file package_path do
|
||||||
source "https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/#{ejabberd_version}/ejabberd_#{ejabberd_version}-0_amd64.deb"
|
source "https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/#{ejabberd_version}/ejabberd_#{ejabberd_version}-0_amd64.deb"
|
||||||
checksum "8352d85f98353c8f57b4f386c6ab17c342292ab60708d13f078e91475daedf05"
|
checksum "aea550c58e61eab04ca9beb8896d8b04f4a79321c21dee160a67ad6787236f51"
|
||||||
notifies :install, "dpkg_package[ejabberd]", :immediately
|
notifies :install, "dpkg_package[ejabberd]", :immediately
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ template "/opt/ejabberd/conf/ejabberd.yml" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
execute "ejabberdctl reload_config" do
|
execute "ejabberdctl reload_config" do
|
||||||
command "/opt/ejabberd-18.12.1/bin/ejabberdctl reload_config"
|
command "/opt/ejabberd-#{ejabberd_version}/bin/ejabberdctl reload_config"
|
||||||
action :nothing
|
action :nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user