Update install.sh
This commit is contained in:
@@ -321,9 +321,9 @@ find "$WEBROOT" -type f ! -name "db_config.php" -delete 2>/dev/null || true
|
|||||||
if curl -f -L --max-time 30 -o "$WEBROOT/index.php" "$DOWNLOAD_URL" 2>/dev/null; then
|
if curl -f -L --max-time 30 -o "$WEBROOT/index.php" "$DOWNLOAD_URL" 2>/dev/null; then
|
||||||
if ! head -n 1 "$WEBROOT/index.php" | grep -q "<?php" && ! grep -q "<?php" "$WEBROOT/index.php" 2>/dev/null; then
|
if ! head -n 1 "$WEBROOT/index.php" | grep -q "<?php" && ! grep -q "<?php" "$WEBROOT/index.php" 2>/dev/null; then
|
||||||
create_fallback_index
|
create_fallback_index
|
||||||
log_error "Скачанный файл не является PHP-скриптом, создана резервная страница"
|
log_warning "Скачанный файл не является PHP-скриптом, создана резервная страница"
|
||||||
else
|
else
|
||||||
log_success "Файл index.php успешно загружен"
|
echo "Ещё чуть-чуть.."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
create_fallback_index
|
create_fallback_index
|
||||||
|
|||||||
Reference in New Issue
Block a user