mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
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:
@@ -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 ""
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user