[Fix] Remove all emoji violations from code files
- Replaced emojis with ASCII text markers ([OK], [ERROR], [WARNING], etc.) - Fixed 38+ violations across 20 files (7 Python, 6 shell scripts, 6 hooks, 1 API) - All modified files pass syntax verification - Conforms to CODING_GUIDELINES.md NO EMOJIS rule Details: - Python test files: check_record_counts.py, test_*.py (31 fixes) - API utils: context_compression.py regex pattern updated - Shell scripts: setup/test/install/upgrade scripts (64+ fixes) - Hook scripts: task-complete, user-prompt-submit, sync-contexts (10 fixes) Verification: All files pass syntax checks (python -m py_compile, bash -n) Report: FIXES_APPLIED.md contains complete change log Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,14 +15,14 @@ echo ""
|
||||
echo "[1/7] Installing MariaDB..."
|
||||
sudo apt update
|
||||
sudo apt install -y mariadb-server mariadb-client
|
||||
echo "✓ MariaDB installed"
|
||||
echo "[OK] MariaDB installed"
|
||||
echo ""
|
||||
|
||||
# Start and enable service
|
||||
echo "[2/7] Starting MariaDB service..."
|
||||
sudo systemctl start mariadb
|
||||
sudo systemctl enable mariadb
|
||||
echo "✓ MariaDB service started and enabled"
|
||||
echo "[OK] MariaDB service started and enabled"
|
||||
echo ""
|
||||
|
||||
# Secure installation (automated)
|
||||
@@ -33,7 +33,7 @@ sudo mysql -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localh
|
||||
sudo mysql -e "DROP DATABASE IF EXISTS test;"
|
||||
sudo mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%';"
|
||||
sudo mysql -e "FLUSH PRIVILEGES;"
|
||||
echo "✓ MariaDB secured (root password: CT_rmm_root_2026)"
|
||||
echo "[OK] MariaDB secured (root password: CT_rmm_root_2026)"
|
||||
echo ""
|
||||
|
||||
# Create ClaudeTools database
|
||||
@@ -49,25 +49,25 @@ GRANT ALL PRIVILEGES ON claudetools.* TO 'claudetools'@'localhost';
|
||||
|
||||
FLUSH PRIVILEGES;
|
||||
EOF
|
||||
echo "✓ Database and users created"
|
||||
echo "[OK] Database and users created"
|
||||
echo ""
|
||||
|
||||
# Configure for network access
|
||||
echo "[5/7] Configuring MariaDB for network access..."
|
||||
sudo sed -i 's/bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/' /etc/mysql/mariadb.conf.d/50-server.cnf
|
||||
echo "✓ Network access configured"
|
||||
echo "[OK] Network access configured"
|
||||
echo ""
|
||||
|
||||
# Restart MariaDB
|
||||
echo "[6/7] Restarting MariaDB..."
|
||||
sudo systemctl restart mariadb
|
||||
echo "✓ MariaDB restarted"
|
||||
echo "[OK] MariaDB restarted"
|
||||
echo ""
|
||||
|
||||
# Test connection
|
||||
echo "[7/7] Testing connection..."
|
||||
mysql -h localhost -u claudetools -pCT_e8fcd5a3952030a79ed6debae6c954ed -e "SELECT 'Connection successful!' AS status;"
|
||||
echo "✓ Connection test passed"
|
||||
echo "[OK] Connection test passed"
|
||||
echo ""
|
||||
|
||||
echo "=========================================="
|
||||
|
||||
Reference in New Issue
Block a user