forked from pool/prometheus-webhook-snmp-image
Get the image containing the Prometheus SNMP webhook into registry.opensuse.org. OBS-URL: https://build.opensuse.org/request/show/835207 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/prometheus-webhook-snmp-image?expand=0&rev=1
30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
test -f /.kconfig && . /.kconfig
|
|
test -f /.profile && . /.profile
|
|
|
|
echo "Configure image: [$kiwi_iname]..."
|
|
|
|
#======================================
|
|
# Disable recommends
|
|
#--------------------------------------
|
|
sed -i 's/.*installRecommends.*/installRecommends = no/g' /etc/zypp/zypper.conf
|
|
|
|
#======================================
|
|
# Remove locale files
|
|
#--------------------------------------
|
|
find /usr/share/locale -name '*.mo' -delete
|
|
|
|
exit 0
|