Skip to content
Snippets Groups Projects
Commit e22e7e49 authored by DJ Mountney's avatar DJ Mountney
Browse files

Ensure mattermost is restarted after it receives a version update

parent 1a99cec3
No related merge requests found
......@@ -45,6 +45,7 @@
block do
File.open(license_path, 'w') { |f| f.write(GITLAB_MATTERMOST_COMPILED_LICENSE) }
File.open(File.join(install_dir, 'embedded/service/mattermost/VERSION'), version)
end
end
......
......@@ -133,3 +133,8 @@
}.merge(params))
log_options node['gitlab']['logging'].to_hash.merge(node['mattermost'].to_hash)
end
file File.join(mattermost_home, "VERSION") do
content VersionHelper.version("cat /opt/gitlab/embedded/service/mattermost/VERSION")
notifies :hup, "runit_service[mattermost]"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment