Renarde-dev
dc86f2be5c
Detect if piwigo is running in a container
...
Append info on PHP_OS in the template of `admin/maintenance_env.php` and in `include/functions.inc.php` -> `send_piwigo_infos()`
Detection works by checking if PHP is running on Linux then check if PID2 is kthreadd
Kthreadd is useless in a container so PID2 should not exist of be another process
If unable to read /proc/2/sched for some reason, assume a SELinux restriction and that PHP is not running in a container
`is_in_container()` doesn't differentiate between VMs or bare metal, it only check if PHP is running in a containerized environement via tools like docker/podman/....
2025-09-05 11:50:27 +02:00
..
2025-02-18 10:24:33 +01:00
2024-09-23 15:05:39 +02:00
2019-06-04 17:13:51 +02:00
2023-08-02 12:46:34 +02:00
2016-04-26 11:07:44 +02:00
2023-12-13 15:06:46 +01:00
2025-08-26 16:38:11 +02:00
2023-11-06 11:37:34 +01:00
2024-03-27 15:00:21 +01:00
2019-06-04 17:13:51 +02:00
2022-09-16 10:04:02 +02:00
2020-09-11 10:34:06 +02:00
2020-09-11 10:34:06 +02:00
2023-11-24 18:08:52 +01:00
2022-09-01 15:20:55 +02:00
2025-03-01 14:20:11 +01:00
2025-08-08 15:17:50 +02:00
2024-10-21 15:31:53 +02:00
2023-08-02 11:50:19 +02:00
2019-06-04 17:13:51 +02:00
2025-06-26 12:35:03 +02:00
2022-09-01 15:20:55 +02:00
2018-07-12 10:52:55 +02:00
2018-07-12 10:52:55 +02:00
2019-06-04 17:13:51 +02:00
2019-06-04 17:13:51 +02:00
2022-09-12 15:19:26 +02:00
2022-11-22 16:01:43 +01:00
2019-12-04 10:40:47 +01:00
2019-06-04 17:13:51 +02:00
2025-06-30 11:31:47 +02:00
2024-12-19 16:40:38 +01:00
2024-06-19 15:36:04 +02:00
2023-10-05 15:37:48 +02:00
2024-06-20 11:56:19 +02:00
2022-12-24 17:36:35 +01:00
2019-06-04 17:13:51 +02:00
2025-08-08 15:07:02 +02:00
2025-06-09 20:35:57 +02:00
2024-08-20 15:47:32 +02:00
2023-08-21 15:43:50 +02:00
2025-07-07 08:58:27 +02:00
2025-09-05 11:50:27 +02:00
2019-06-04 17:13:51 +02:00
2021-08-02 19:16:50 +02:00
2025-03-01 14:20:11 +01:00
2017-03-02 11:15:52 +01:00
2022-01-04 16:32:07 +01:00
2021-05-12 15:42:00 +02:00
2022-04-08 09:14:18 +02:00
2024-06-10 21:32:04 +02:00
2015-12-20 21:36:42 +01:00
2023-12-04 19:14:59 +01:00
2024-04-10 12:24:32 +02:00
2019-06-04 17:13:51 +02:00
2024-12-20 10:45:36 +01:00
2024-12-20 10:45:36 +01:00
2025-08-08 15:07:02 +02:00
2024-12-31 16:14:15 +01:00
2016-05-13 10:25:03 +02:00
2025-05-05 21:40:59 +02:00
2025-06-09 20:35:57 +02:00
2025-06-09 20:35:57 +02:00
2023-07-17 18:05:29 +02:00
2021-10-07 14:53:27 +02:00