Skip to content

Commit

Permalink
Merge pull request #356 from dev/arogge/master/univention-packaging
Browse files Browse the repository at this point in the history
Remove public-key for Univention from Repository
  • Loading branch information
arogge committed Dec 2, 2019
2 parents 4eb5c96 + f8b60d3 commit 3b4d190
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 61 deletions.
@@ -1,4 +1,4 @@
/etc/bareos/bareos-com-release.key
/etc/bareos/bareos-release.key
/etc/bareos/autogenerated/clients/generic.template
/etc/bareos/autogenerated/clients/windows.template
/etc/cron.d/univention-bareos
Expand Down
6 changes: 5 additions & 1 deletion core/platforms/univention/CMakeLists.txt
Expand Up @@ -57,7 +57,11 @@ install(
)

install(
FILES "bareos-com-release.key"
# This file contains the Bareos repository signature public.
# During the automatic build process, It will be added.
# For manual builds, download the file from
# http://download.bareos.org/bareos/release/<RELEASE>/<DISTRIBUTION>/Release.key
FILES "bareos-release.key"
DESTINATION "${confdir}"
)

Expand Down
31 changes: 0 additions & 31 deletions core/platforms/univention/bareos-com-release.key

This file was deleted.

Expand Up @@ -11,25 +11,15 @@ password = configRegistry.get('bareos/subscription/password', '')
if username and password:

bareos_major_version = @BAREOS_VERSION_MAJOR@.@BAREOS_VERSION_MINOR@
#bareos_sign_key_id = 'F93C028C093BFBA2'

ucs_version = configRegistry.get('version/version')
bareos_univention_dist = '@OBS_DISTRIBUTION@'

#
# example:
# http://download.bareos.com/bareos/release/15.2/Univention_4.0/
# https does not work on UCS 4.0, even if apt-transport-https is installed.
# With UCS 4.2, https can and will be used.
#
bareos_com_url = "https://{username}:{password}@download.bareos.com/bareos/release/{version}/{dist}".format(username=quote(username), password=password, version=bareos_major_version, dist=bareos_univention_dist)

# import the bareos signing key from a keyserver (does work, if internet connection is available)
#cmd = subprocess.Popen(['apt-key', 'adv', '--keyserver', 'pool.sks-keyservers.net', '--recv-key', bareos_sign_key_id], stdout=sys.stderr, stderr=sys.stderr)
sys.stderr.write("importing bareos.com release key: ")
cmd = subprocess.Popen(['apt-key', 'add', '/etc/bareos/bareos-com-release.key'], stdout=sys.stderr, stderr=sys.stderr)
cmd = subprocess.Popen(['apt-key', 'add', '/etc/bareos/bareos-release.key'], stdout=sys.stderr, stderr=sys.stderr)
rc = cmd.wait()
#sys.stderr.write("rc=" + str(rc) + "\n")

print "deb {url} /".format(url=bareos_com_url)

Expand Down
17 changes: 0 additions & 17 deletions core/platforms/univention/get_bareos_release_key.sh.in

This file was deleted.

0 comments on commit 3b4d190

Please sign in to comment.