mirror of https://github.com/zulip/zulip.git
static_asset_compiler: Use correct package name on trusty.
This commit is contained in:
parent
97b622dffa
commit
1c40df9363
|
@ -1,7 +1,12 @@
|
|||
class zulip::static_asset_compiler {
|
||||
if $zulip::base::release_name == "trusty" {
|
||||
$closure_compiler_package = "libclosure-compiler-java"
|
||||
} elsif $zulip::base::release_name == "xenial" {
|
||||
$closure_compiler_package = "closure-compiler"
|
||||
}
|
||||
$static_asset_compiler_packages = [
|
||||
# Needed for minify-js
|
||||
"closure-compiler",
|
||||
$closure_compiler_package,
|
||||
"nodejs",
|
||||
"nodejs-legacy",
|
||||
"npm",
|
||||
|
@ -9,6 +14,7 @@ class zulip::static_asset_compiler {
|
|||
# Used by makemessages i18n
|
||||
"gettext",
|
||||
]
|
||||
|
||||
define safepackage ( $ensure = present ) {
|
||||
if !defined(Package[$title]) {
|
||||
package { $title: ensure => $ensure }
|
||||
|
|
Loading…
Reference in New Issue