Skip to content

Commit e04b0ff

Browse files
committed
feat: add ubuntu 24 to the allowed set
closes webpod#12
1 parent fc44d05 commit e04b0ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/recipe/provision/check.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ task('provision:check', async ({host, $}) => {
1111

1212
const version = (await $`cat /etc/os-release | grep VERSION_ID`)
1313
.split('=')[1].replace(/"/g, '')
14-
if (![20, 22, 23].includes(parseInt(version))) {
15-
throw new StopError('Ubuntu version must be 20 or 22')
14+
if (![20, 22, 23, 24].includes(parseInt(version))) {
15+
throw new StopError('Ubuntu version must be in the set 20, 22, 24')
1616
}
1717

1818
if (await $.test`systemctl is-active nginx`) {

0 commit comments

Comments
 (0)