From fdf7a2e06edf4969942b2c1d8277898af3e6fd63 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 4 Nov 2024 15:51:42 +0100 Subject: [PATCH] Updated base image to python:slim-bookworm for PHP 8.2 support. Replaced bash calls in PHP scripts with Python. --- Dockerfile | 2 +- www/private/views/api/scanner-scanto.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8319715..e0f4a7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:slim-bullseye +FROM python:slim-bookworm RUN < 'Scan triggered','method' => 'post','target' => $target)); } else if ($method == 'wait') { - shell_exec('sudo -u \#'.$UID.' /opt/brother/scanner/brscan-skey/script/scanto'.$target.'.sh'); + shell_exec('sudo -u \#'.$UID.' /opt/brother/scanner/brscan-skey/script/scanto'.$target.'.py'); json(array('message' => 'Scan triggered','method' => 'get','target' => $target)); } }