Обновления текста
This commit is contained in:
@@ -30,7 +30,7 @@ generate_password() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
full_uninstall() {
|
full_uninstall() {
|
||||||
echo -e "${YELLOW}[INFO]${NC} Начинаем полное удаление LAMP-окружения..."
|
echo -e "${YELLOW}[INFO]${NC} Начинаем полное удаление Altcor... :("
|
||||||
|
|
||||||
systemctl stop nginx apache2 httpd php*-fpm mariadb mysql redis 2>/dev/null || true
|
systemctl stop nginx apache2 httpd php*-fpm mariadb mysql redis 2>/dev/null || true
|
||||||
|
|
||||||
@@ -299,7 +299,6 @@ if [ -f "$PHP_INI_PATH" ]; then
|
|||||||
sed -i 's/;*log_errors = .*/log_errors = On/' "$PHP_INI_PATH"
|
sed -i 's/;*log_errors = .*/log_errors = On/' "$PHP_INI_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Создаем конфигурационный файл БД с сгенерированным паролем
|
|
||||||
cat > "$WEBROOT/db_config.php" << EOF
|
cat > "$WEBROOT/db_config.php" << EOF
|
||||||
<?php
|
<?php
|
||||||
\$db_host = 'localhost';
|
\$db_host = 'localhost';
|
||||||
@@ -325,7 +324,7 @@ echo "<html lang='ru'>";
|
|||||||
echo "<head>";
|
echo "<head>";
|
||||||
echo "<meta charset='UTF-8'>";
|
echo "<meta charset='UTF-8'>";
|
||||||
echo "<meta name='viewport' content='width=device-width, initial-scale=1.0'>";
|
echo "<meta name='viewport' content='width=device-width, initial-scale=1.0'>";
|
||||||
echo "<title>Сервер LAMP - Готов к работе</title>";
|
echo "<title>Сервер - Готов к работе</title>";
|
||||||
echo "<style>";
|
echo "<style>";
|
||||||
echo "body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 40px; background: #f5f5f5; }";
|
echo "body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 40px; background: #f5f5f5; }";
|
||||||
echo ".container { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }";
|
echo ".container { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }";
|
||||||
|
|||||||
Reference in New Issue
Block a user