Skip to content

Commit f995d98

Browse files
authored
Merge pull request #482 from Automattic/update/php
fix(php): remove cron from rc2.d for Debian
2 parents 82697f1 + 2a84af7 commit f995d98

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

features/src/php/devcontainer-feature.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"id": "php",
33
"name": "PHP",
44
"description": "Installs PHP into the Dev Environment",
5-
"version": "2.8.1",
5+
"version": "2.9.0",
66
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/php",
77
"options": {
88
"version": {
99
"type": "string",
1010
"enum": ["8.0", "8.1", "8.2", "8.3", "8.4"],
11-
"default": "8.2",
11+
"default": "8.3",
1212
"description": "PHP version"
1313
},
1414
"composer": {

features/src/php/install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ setup_php81_deb() {
312312

313313
# shellcheck disable=SC2086
314314
eatmydata apt-get install -y --no-install-recommends \
315+
anacron \
315316
php8.1-cli php8.1-fpm \
316317
php8.1-apcu php8.1-curl php8.1-gd php8.1-gmp php8.1-mbstring \
317318
php8.1-memcache php8.1-memcached php8.1-mysql php8.1-sqlite3 php8.1-xml php8.1-zip ${EXTENSIONS}
@@ -338,6 +339,8 @@ setup_php81_deb() {
338339
fi
339340

340341
update-rc.d -f php8.1-fpm remove
342+
update-rc.d -f anacron remove
343+
rm -f /etc/cron.*/*anacron
341344
}
342345

343346
setup_php82_deb() {
@@ -353,6 +356,7 @@ setup_php82_deb() {
353356

354357
# shellcheck disable=SC2086
355358
eatmydata apt-get install -y --no-install-recommends \
359+
anacron \
356360
php8.2-cli php8.2-fpm \
357361
php8.2-apcu php8.2-curl php8.2-gd php8.2-gmp php8.2-mbstring \
358362
php8.2-memcache php8.2-memcached php8.2-mysql php8.2-sqlite3 php8.2-xml php8.2-zip ${EXTENSIONS}
@@ -379,6 +383,8 @@ setup_php82_deb() {
379383
fi
380384

381385
update-rc.d -f php8.2-fpm remove
386+
update-rc.d -f anacron remove
387+
rm -f /etc/cron.*/*anacron
382388
}
383389

384390
setup_php83_deb() {
@@ -394,6 +400,7 @@ setup_php83_deb() {
394400

395401
# shellcheck disable=SC2086
396402
eatmydata apt-get install -y --no-install-recommends \
403+
anacron \
397404
php8.3-cli php8.3-fpm \
398405
php8.3-apcu php8.3-curl php8.3-gd php8.3-gmp php8.3-mbstring \
399406
php8.3-memcache php8.3-memcached php8.3-mysql php8.3-sqlite3 php8.3-xml php8.3-zip ${EXTENSIONS}
@@ -420,6 +427,8 @@ setup_php83_deb() {
420427
fi
421428

422429
update-rc.d -f php8.3-fpm remove
430+
update-rc.d -f anacron remove
431+
rm -f /etc/cron.*/*anacron
423432
}
424433

425434
setup_php84_deb() {
@@ -435,6 +444,7 @@ setup_php84_deb() {
435444

436445
# shellcheck disable=SC2086
437446
eatmydata apt-get install -y --no-install-recommends \
447+
anacron \
438448
php8.4-cli php8.4-fpm \
439449
php8.4-apcu php8.4-curl php8.4-gd php8.4-gmp php8.4-mbstring \
440450
php8.4-memcache php8.4-memcached php8.4-mysql php8.4-sqlite3 php8.4-xml php8.4-zip ${EXTENSIONS}
@@ -461,6 +471,8 @@ setup_php84_deb() {
461471
fi
462472

463473
update-rc.d -f php8.4-fpm remove
474+
update-rc.d -f anacron remove
475+
rm -f /etc/cron.*/*anacron
464476
}
465477

466478
echo "(*) Installing PHP ${PHP_VERSION}..."

0 commit comments

Comments
 (0)