File: openstack-debian-images-build-farm.cron.daily

package info (click to toggle)
openstack-debian-images 1.73
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 292 kB
  • sloc: sh: 2,955; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if ! [ -x /usr/bin/daily-openstack-debian-image ] ; then
	exit 0
fi

if ! [ -e /etc/openstack-debian-images/openstack-debian-images.conf ] ; then
	echo "$0 Configuration file /etc/openstack-debian-images/openstack-debian-images.conf missing: exiting..."
	exit 1
fi

. /etc/openstack-debian-images/openstack-debian-images.conf

if [ "${DAILY_IMAGE_UPDATES}" != "yes" ] ; then
	exit 0
else
	mkdir -p /var/log/openstack-debian-images
	/usr/bin/daily-openstack-debian-image >/var/log/openstack-debian-images/daily-check.log 2>&1
fi