mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 12:14:28 +00:00
refactor: Update ServerSeeder and PopulateSshKeysDirectorySeeder
This commit is contained in:
1 parent
fa375e2fd8
commit
be42f15711
4 files changed
+84
-113
No files matched your search
@@ -23,7 +23,13 @@ class PopulateSshKeysDirectorySeeder extends Seeder
|
||||
}
|
||||
});
|
||||
|
||||
Process::run('chown -R 9999:9999 '.storage_path('app/ssh/keys'));
|
||||
Process::run('chown -R 9999:9999 '.storage_path('app/ssh/mux'));
|
||||
if (isDev()) {
|
||||
$user = env('PUID').':'.env('PGID');
|
||||
Process::run("chown -R $user ".storage_path('app/ssh/keys'));
|
||||
Process::run("chown -R $user ".storage_path('app/ssh/mux'));
|
||||
} else {
|
||||
Process::run('chown -R 9999:9999 '.storage_path('app/ssh/keys'));
|
||||
Process::run('chown -R 9999:9999 '.storage_path('app/ssh/mux'));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user