File config.sh of Package horde5-developer-Docker-Leap
#!/bin/bash
#================
# FILE : config.sh
#----------------
# PROJECT : OpenSuSE KIWI Image System
# COPYRIGHT : (c) 2013 SUSE LLC
# :
# AUTHOR : Robert Schweikert <rjschwei@suse.com>
# :
# BELONGS TO : Operating System images
# :
# DESCRIPTION : configuration script for SUSE based
# : operating systems
# :
# :
# STATUS : BETA
#----------------
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
#======================================
# Greeting...
#--------------------------------------
echo "Configure image: [$kiwi_iname]..."
#======================================
# Setup baseproduct link
#--------------------------------------
suseSetupProduct
#======================================
# SuSEconfig
#--------------------------------------
suseConfig
#======================================
# Import repositories' keys
#--------------------------------------
suseImportBuildKey
#======================================
# Umount kernel filesystems
#--------------------------------------
baseCleanMount
#======================================
# Disable recommends
#--------------------------------------
sed -i 's/.*installRecommends.*/installRecommends = no/g' /etc/zypp/zypper.conf
#======================================
# Configure PHP and Horde
#--------------------------------------
a2enmod php7
a2enmod rewrite
ln -s /etc/php7/cli/pear.conf /etc/php7/apache2/pear.conf
chown -r wwwrun /srv/git/horde/*/config
(cd /usr/share/locale && find -name '*.mo' | xargs rm)
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
exit 0