refactor: rename database → storage

More semantically accurate: contains SQLite files, schema, fixtures, test data.
Updated all references in code, scripts, docs.
This commit is contained in:
Théophile Gervreau-Mercier
2026-02-12 12:12:58 +01:00
parent 0e4921583e
commit 7fca85d1c1
38 changed files with 131 additions and 131 deletions

View File

@@ -42,9 +42,9 @@ if [ -d "/var/www/html/formulaire/data/theses" ]; then
fi
# Protect database if it exists
if [ -f "/var/www/html/database/posterg.db" ]; then
chmod 660 /var/www/html/database/posterg.db
chown www-data:posterg /var/www/html/database/posterg.db
if [ -f "/var/www/html/storage/posterg.db" ]; then
chmod 660 /var/www/html/storage/posterg.db
chown www-data:posterg /var/www/html/storage/posterg.db
echo "✓ Protected database file"
fi
@@ -174,7 +174,7 @@ echo " • Access log: tail -f /var/log/nginx/posterg_access.log"
echo " • Error log: tail -f /var/log/nginx/posterg_error.log"
echo ""
echo "🔒 Security Checks:"
echo " • Database blocked: curl -I http://localhost/database/posterg.db"
echo " • Database blocked: curl -I http://localhost/storage/posterg.db"
echo " • MD files blocked: curl -I http://localhost/README.md"
echo " • Shared blocked: curl -I http://localhost/shared/Database.php"
echo ""

View File

@@ -164,6 +164,6 @@ echo " admin/ - Admin panel"
echo " lib/ - Shared libraries"
echo " assets/ - Static files"
echo " inc/ - Templates"
echo " database/ - Database files"
echo " storage/ - Database files"
echo " vendor/ - Third-party (gitignored)"
echo ""

View File

@@ -35,10 +35,10 @@ else
fi
# Create test database if needed
if [ ! -f "database/test.db" ]; then
if [ ! -f "storage/test.db" ]; then
echo ""
echo "📊 Creating test database..."
sqlite3 database/test.db < database/schema.sql
sqlite3 storage/test.db < storage/schema.sql
echo "✓ Created test database"
fi