Merge branch 'main'

This commit is contained in:
2025-08-10 02:52:24 +03:00
2 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# 🚀 Altcor Server Быстрый старт # 🚀 Altcor Server Быстрый старт
Установите и Altcor одной командой: Установка Altcor одной командой:
```bash ```bash
git clone https://git.stellarisei.ru/hoshimach1/altcorAutoinstall/ && cd autoinstall && chmod +x install.sh && sudo ./install.sh git clone https://git.stellarisei.ru/hoshimach1/altcorAutoinstall/ && cd autoinstall && chmod +x install.sh && sudo ./install.sh
@@ -13,7 +13,3 @@ git clone https://git.stellarisei.ru/hoshimach1/altcorAutoinstall/ && cd autoins
* [http://localhost/](http://localhost/) * [http://localhost/](http://localhost/)
* `http://<IP_сервера>/` * `http://<IP_сервера>/`
* Директория сайта: `/var/www/html` * Директория сайта: `/var/www/html`
---
**Altcor Server Setup** готовый сервер за несколько минут.

View File

@@ -37,6 +37,8 @@ else
exit 1 exit 1
fi fi
echo "Установка Altcor..."
if echo "$DISTRO $FAMILY" | grep -qi "debian\|ubuntu"; then if echo "$DISTRO $FAMILY" | grep -qi "debian\|ubuntu"; then
PKG_MANAGER="apt" PKG_MANAGER="apt"
DISTRO_FAMILY="debian" DISTRO_FAMILY="debian"
@@ -366,9 +368,13 @@ 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
<<<<<<< HEAD
echo "Ещё чуть-чуть... echo "Ещё чуть-чуть...
=======
echo "Ещё чуть-чуть.."
>>>>>>> 3e670d5a8c5d40b3450f80746117bd4786ae4692
fi fi
else else
create_fallback_index create_fallback_index