LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File config.sh of Package opensuse-jeos (Project home:clanig:jeos)

#!/bin/sh
#
# Basic configuration script for KIWI JeOS image.
#
# Copyright: (c) 2019 SUSE LLC
# Author: Christian Lanig <clanig@suse.com>
################################################################################

check()
{
	if [ $1 = 0 ]
	then
		echo "done."
	else
		echo "FAILED."
		exit 1
	fi
}

# Package signing keys are placed in following dir before executing this script!
rpm_gpg_dir=/root/rpm-gpg/

printf "Importing openSUSE gpg package signing keys to rpm... "
rpm --import "$rpm_gpg_dir"gpg-pubkey-307e3d54-5aaa90a5.asc && \
rpm --import "$rpm_gpg_dir"gpg-pubkey-39db7c82-5847eb1f.asc && \
rpm --import "$rpm_gpg_dir"gpg-pubkey-3dbdc284-53674dd4.asc
check $?

printf "Removing files containing gpg package signing keys... "
rm -rf $rpm_gpg_dir
check $?

printf "Removing documentation... "
rm -rf /usr/share/doc/*
check $?

printf "Enabling SSH daemon... "
systemctl enable sshd
check $?

exit 0