correction pour utilisation avec sudo

This commit is contained in:
Cédric Abonnel 2025-03-22 08:08:19 +01:00
parent 00c1c9562b
commit 164c69f580
1 changed files with 1 additions and 1 deletions
scripts/server-httpd

View File

@ -8,7 +8,7 @@ source "$(dirname "$0")/../common/common_utils.sh"
check_root
WWW_DIR="/var/www"
CURRENT_USER=$(whoami)
REAL_USER="${SUDO_USER:-$(whoami)}"
echo "Correction des permissions de $WWW_DIR/html si nécessaire..."
if [ -d "$WWW_DIR/html" ]; then