Guest User

Untitled

a guest
Apr 25th, 2025
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/bin/sh
  2. set -e
  3.  
  4. sed -i "s#\${PORT}#$PORT#g" /etc/apache2/ports.conf
  5. sed -i "s#\${PORT}#$PORT#g" /etc/apache2/sites-available/*.conf
  6. sed -i "s#\${APACHE_DOCUMENT_ROOT}#$APACHE_DOCUMENT_ROOT#g" /etc/apache2/sites-available/*.conf
  7.  
  8. # Lancer Apache en mode foreground
  9. echo "🟢 Ready to start Apache..."
  10. exec "$@"
Advertisement
Add Comment
Please, Sign In to add comment