Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
61511e84
Commit
61511e84
authored
Apr 07, 2017
by
Francesc Guasch
Browse files
[#156] Add URL for the ISO and the MD5
parent
e80f1882
Changes
5
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
61511e84
...
...
@@ -164,6 +164,8 @@ sub _upgrade_tables {
$self
->
_upgrade_table
('
file_base_images
','
target
','
varchar(64) DEFAULT NULL
');
$self
->
_upgrade_table
('
vms
','
vm_type
',"
char(20) NOT NULL DEFAULT 'KVM'
");
$self
->
_upgrade_table
('
requests
','
at_time
','
int(11) DEFAULT NULL
');
$self
->
_upgrade_table
('
iso_images
','
md5_url
','
varchar(255)
');
$self
->
_upgrade_table
('
iso_images
','
file_re
','
char(64)
');
}
...
...
sql/data/insert_iso_images.sql
View file @
61511e84
...
...
@@ -10,62 +10,68 @@ VALUES('Debian Jessie 32 bits netinst'
);
INSERT
INTO
iso_images
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
md5
)
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
file_re
,
md5_url
)
VALUES
(
'Ubuntu Trusty 32 bits'
,
'Ubuntu 14.04 LTS Trusty 32 bits'
,
'i386'
,
'trusty-i386.xml'
,
'trusty-volume.xml'
,
'http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-i386.iso'
,
'610c4a399df39a78866f9236b8c658da'
,
'http://releases.ubuntu.com/14.04/'
,
'ubuntu-14.04.
\d
+-desktop-i386.iso'
,
'http://releases.ubuntu.com/14.04/MD5SUMS'
);
INSERT
INTO
iso_images
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
md5
)
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
file_re
,
md5_url
)
VALUES
(
'Ubuntu Trusty 64 bits'
,
'Ubuntu 14.04.1 LTS Trusty 64 bits'
,
'amd64'
,
'trusty-amd64.xml'
,
'trusty-amd64-volume.xml'
,
'http://releases.ubuntu.com/16.04/ubuntu-16.04.1-desktop-amd64.iso'
,
'17643c29e3c4609818f26becf76d29a3'
,
'http://releases.ubuntu.com/16.04/'
,
'ubuntu-14.04.*-desktop-amd64.iso'
,
'http://releases.ubuntu.com/16.04/MD5SUMS'
);
INSERT
INTO
iso_images
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
md5
)
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
file_re
,
md5_url
)
VALUES
(
'Ubuntu Xenial Xerus 32 bits'
,
'Ubuntu 16.04 LTS Xenial Xerus 32 bits'
,
'i386'
,
'xenial-i386.xml'
,
'xenial-volume.xml'
,
'http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-i386.iso'
,
'610c4a399df39a78866f9236b8c658da'
,
'http://releases.ubuntu.com/16.04/'
,
'ubuntu-16.04.*desktop-i386.iso'
,
'http://releases.ubuntu.com/16.04/MD5SUMS'
);
INSERT
INTO
iso_images
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
md5
)
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
file_re
,
md5_url
)
VALUES
(
'Ubuntu Xenial Xerus 64 bits'
,
'Ubuntu 16.04 LTS Xenial Xerus 64 bits'
,
'amd64'
,
'xenial64-amd64.xml'
,
'xenial64-volume.xml'
,
'http://releases.ubuntu.com/16.04/ubuntu-16.04.2-desktop-amd64.iso'
,
'1400884cec8e40a1a876b2678f81494b'
,
'http://releases.ubuntu.com/16.04/'
,
'ubuntu-16.04.*-desktop-amd64.iso'
,
'http://releases.ubuntu.com/16.04/MD5SUMS'
);
INSERT
INTO
iso_images
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
md5
)
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
file_re
,
md5_url
)
VALUES
(
'Ubuntu Yakkety Yak 64 bits'
,
' Ubuntu 16.10 Yakkety Yak 64 bits'
,
'amd64'
,
'yakkety64-amd64.xml'
,
'yakkety64-volume.xml'
,
'http://releases.ubuntu.com/16.10/ubuntu-16.10-desktop-amd64.iso'
,
'3f50877c05121f7fd8544bef2d722824'
,
'http://releases.ubuntu.com/16.10/'
,
'ubuntu-16.10.*desktop-amd64.iso'
,
'http://releases.ubuntu.com/16.10/MD5SUMS'
);
INSERT
INTO
iso_images
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
md5
)
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
file_re
,
md5_url
)
VALUES
(
'Debian Jessie 64 bits netinst'
,
'Debian 8.5.0 Jessie 64 bits (netsinst)'
,
'amd64'
,
'jessie-amd64.xml'
,
'jessie-volume.xml'
,
'http://cdimage.debian.org/cdimage/archive/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso'
,
'3e1b9029a0cf188730646c379d15073f'
,
'http://cdimage.debian.org/cdimage/archive/8.5.0/amd64/iso-cd/'
,
'debian-8.5.0-amd64-netinst.iso'
,
'http://releases.ubuntu.com/16.10/MD5SUMS'
);
sql/mysql/iso_images.sql
View file @
61511e84
CREATE
TABLE
`iso_images`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`file_re`
char
(
64
)
`name`
char
(
64
)
NOT
NULL
,
`description`
varchar
(
255
),
`arch`
char
(
8
),
`xml`
varchar
(
64
),
`xml_volume`
varchar
(
64
),
`url`
varchar
(
255
),
`md5`
char
(
32
),
`md5`
varchar
(
32
),
`md5_url`
varchar
(
255
),
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`name`
(
`name`
)
);
sql/sqlite/insert_iso_dsl.sql
View file @
61511e84
INSERT
INTO
iso_images
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
md5
)
(
name
,
description
,
arch
,
xml
,
xml_volume
,
url
,
file_re
,
md5
,
md5_url
)
VALUES
(
'DSL 4.11 rc2'
,
'Damn Small Linux 4.11 rc2'
,
'i386'
,
'dsl-i386.xml'
,
'dsl-volume.xml'
,
'http://distro.ibiblio.org/damnsmall/release_candidate/dsl-4.11.rc2.iso'
,
'4b61c7892eefc23b71d4931bdcc3f1f1'
,
'http://distro.ibiblio.org/damnsmall/release_candidate/'
,
'dsl-4.11..*.iso'
,
''
,
'http://distro.ibiblio.org/damnsmall/release_candidate/dsl-4.11.rc2.iso.md5.txt'
);
sql/sqlite/iso_images.sql
View file @
61511e84
CREATE
TABLE
`iso_images`
(
`id`
integer
NOT
NULL
PRIMARY
KEY
AUTOINCREMENT
,
`file_re`
char
(
64
)
,
`name`
char
(
64
)
NOT
NULL
,
`description`
varchar
(
255
)
,
`arch`
char
(
8
)
,
`xml`
varchar
(
64
)
,
`xml_volume`
varchar
(
64
)
,
`url`
varchar
(
255
)
,
`md5`
char
(
32
)
,
`md5`
varchar
(
32
)
,
`md5_url`
varchar
(
255
)
,
UNIQUE
(
`name`
)
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment