mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 13:29:03 +08:00
fix: Fix the issue of software link creation errors (#11149)
This commit is contained in:
parent
7d92436b92
commit
7aefa34871
1 changed files with 2 additions and 0 deletions
|
|
@ -242,6 +242,8 @@ func (f *FileService) Create(op request.FileCreate) error {
|
|||
if err := fo.LinkFile(op.LinkPath, op.Path, op.IsSymlink); err != nil {
|
||||
return err
|
||||
}
|
||||
handleDefaultOwn(op.Path)
|
||||
return nil
|
||||
}
|
||||
if err := fo.CreateFileWithMode(op.Path, fs.FileMode(mode)); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue