Supprime les warnings de locale dans les scripts LXC

This commit is contained in:
2026-04-12 15:05:30 +02:00
parent f11afb3600
commit 0da74c6484
2 changed files with 2 additions and 2 deletions

View File

@@ -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\"