From 0da74c6484db0f7c23760020ce64433cda133caa Mon Sep 17 00:00:00 2001 From: Christophe Date: Sun, 12 Apr 2026 15:05:30 +0200 Subject: [PATCH] Supprime les warnings de locale dans les scripts LXC --- scripts/install-proxmox-lxc.sh | 2 +- scripts/update-proxmox-lxc.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-proxmox-lxc.sh b/scripts/install-proxmox-lxc.sh index ac3fd58..48e7192 100755 --- a/scripts/install-proxmox-lxc.sh +++ b/scripts/install-proxmox-lxc.sh @@ -382,7 +382,7 @@ rsync -a --delete \ \"\$repo_dir/\" \"\$web_root/\" while IFS= read -r -d '' html_file; do - ASSET_VERSION=\"\$asset_version\" perl -0pi -e 's{((?:href|src)=\")(?!https?://|data:|//)([^\"?]+?\.(?:css|js|png|jpg|jpeg|svg|webp|ico|pdf))(?:\?[^\"]*)?(\")}{\$1 . \$2 . \"?v=\" . \$ENV{ASSET_VERSION} . \$3}ge' \"\$html_file\" + LC_ALL=C LANG=C ASSET_VERSION=\"\$asset_version\" perl -0pi -e 's{((?:href|src)=\")(?!https?://|data:|//)([^\"?]+?\.(?:css|js|png|jpg|jpeg|svg|webp|ico|pdf))(?:\?[^\"]*)?(\")}{\$1 . \$2 . \"?v=\" . \$ENV{ASSET_VERSION} . \$3}ge' \"\$html_file\" done < <(find \"\$web_root\" -maxdepth 1 -type f -name '*.html' -print0) chown -R www-data:www-data \"\$web_root\" diff --git a/scripts/update-proxmox-lxc.sh b/scripts/update-proxmox-lxc.sh index 6984b17..91c6a4f 100755 --- a/scripts/update-proxmox-lxc.sh +++ b/scripts/update-proxmox-lxc.sh @@ -203,7 +203,7 @@ rsync -a --delete \ \"\$repo_dir/\" \"\$web_root/\" while IFS= read -r -d '' html_file; do - ASSET_VERSION=\"\$asset_version\" perl -0pi -e 's{((?:href|src)=\")(?!https?://|data:|//)([^\"?]+?\.(?:css|js|png|jpg|jpeg|svg|webp|ico|pdf))(?:\?[^\"]*)?(\")}{\$1 . \$2 . \"?v=\" . \$ENV{ASSET_VERSION} . \$3}ge' \"\$html_file\" + LC_ALL=C LANG=C ASSET_VERSION=\"\$asset_version\" perl -0pi -e 's{((?:href|src)=\")(?!https?://|data:|//)([^\"?]+?\.(?:css|js|png|jpg|jpeg|svg|webp|ico|pdf))(?:\?[^\"]*)?(\")}{\$1 . \$2 . \"?v=\" . \$ENV{ASSET_VERSION} . \$3}ge' \"\$html_file\" done < <(find \"\$web_root\" -maxdepth 1 -type f -name '*.html' -print0) chown -R www-data:www-data \"\$web_root\"