mirror of
https://github.com/mivodev/mivo.git
synced 2026-01-26 13:31:56 +07:00
feat: Implement an installation process including a setup UI, database migrations, and admin account creation.
This commit is contained in:
@@ -54,8 +54,20 @@ fi
|
||||
# 4. Set Permissions
|
||||
echo "Step 4: Setting permissions..."
|
||||
chown -R www:www .
|
||||
chmod -R 755 .
|
||||
chmod +x mivo
|
||||
chmod -R 755 public
|
||||
|
||||
# Ensure Database directory is writable
|
||||
if [ ! -d "app/Database" ]; then
|
||||
mkdir -p app/Database
|
||||
chown www:www app/Database
|
||||
fi
|
||||
chmod 775 app/Database
|
||||
if [ -f "app/Database/database.sqlite" ]; then
|
||||
chmod 664 app/Database/database.sqlite
|
||||
fi
|
||||
|
||||
# If there's a storage directory (MVC style usually has one)
|
||||
if [ -d "storage" ]; then
|
||||
chmod -R 775 storage
|
||||
|
||||
Reference in New Issue
Block a user