63 lines
1.1 KiB
Bash
63 lines
1.1 KiB
Bash
# vim:syntax=sh
|
|
|
|
leap_version=15.5
|
|
logfile_base=~/publish_logs/$leap_version-appliances/$(date -d "$date" '+%Y/%m/%d/%H%M')
|
|
synclog="${logfile_base}.log"
|
|
deletelog="${logfile_base}-deletes.log"
|
|
path="/distribution/leap/$leap_version/appliances"
|
|
flavors=(kvm-and-xen)
|
|
#flavors=()
|
|
repos=()
|
|
extra_repos=()
|
|
isodir=""
|
|
|
|
get_version() {
|
|
# get expected version from first flavor
|
|
if [ -z "$version" ]; then
|
|
version=`echo $stage/openSUSE-Leap-$leap_version-Minimal-VM.x86_64-$flavor-Build*.qcow2`
|
|
version=${version##*Build}
|
|
version=${version%.*}
|
|
if [ -z "$version" ]; then
|
|
echo "no version found, exit." | tee -a $synclog
|
|
exit 1
|
|
fi
|
|
fi
|
|
}
|
|
|
|
_get_iso()
|
|
{
|
|
local snapshot="$1"
|
|
local suffix=qcow2
|
|
if [ "$flavor" = 'MS-HyperV' ]; then
|
|
suffix=vhdx.xz
|
|
elif [ "$flavor" = 'VMware' ]; then
|
|
suffix=vmdk.xz
|
|
fi
|
|
echo "openSUSE-Leap-$leap_version-Minimal-VM.x86_64-$flavor-$snapshot.$suffix"
|
|
}
|
|
|
|
get_iso()
|
|
{
|
|
iso=`_get_iso "Build$version"`
|
|
}
|
|
|
|
get_iso_link()
|
|
{
|
|
link="$stage/`_get_iso Current`"
|
|
}
|
|
|
|
get_diff_url()
|
|
{
|
|
url=""
|
|
}
|
|
|
|
get_mark_published_url()
|
|
{
|
|
url=""
|
|
}
|
|
|
|
get_changes_filename()
|
|
{
|
|
changes=""
|
|
}
|