File config.sh of Package horde5-developer

#!/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

set -euo pipefail

echo "Configure image: [$kiwi_iname]..."

#======================================
# Setup baseproduct link
#--------------------------------------
suseSetupProduct

#======================================
# Import repositories' keys
#--------------------------------------
suseImportBuildKey

#======================================
# Add repos from control.xml
#--------------------------------------
add-yast-repos
zypper --non-interactive rm -u live-add-yast-repos

#======================================
# Disable recommends
#--------------------------------------
sed -i 's/.*solver.onlyRequires.*/solver.onlyRequires = true/g' /etc/zypp/zypp.conf

#======================================
# Exclude docs intallation
#--------------------------------------
sed -i 's/.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/g' /etc/zypp/zypp.conf

#======================================
# Remove locale files
#--------------------------------------
find /usr/share/locale -name '*.mo' -delete

# Remove zypp uuid (bsc#1098535)
rm -f /var/lib/zypp/AnonymousUniqueId

mkdir /srv/www/horde; mkdir -p /srv/git/config/; mkdir -p /srv/git/git-tools
cp /srv/git/config/apache/horde.conf /etc/apache2/vhosts.d/
a2enmod php7
a2enmod rewrite
ln -s /etc/php7/cli/pear.conf /etc/php7/apache2/pear.conf

echo "include_path = ".:/srv/www/horde/libs:/usr/share/php7:/usr/share/php7/PEAR"" > /etc/php7/cli/php.ini
/srv/git/git-tools/bin/horde-git-tools dev install
chown -R wwwrun:www /srv/git/horde/base/config/
echo "\$conf['cookie']['domain'] = '';" >> /srv/git/horde/base/config/conf.php


exit 0
openSUSE Build Service is sponsored by