Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Fine committed Jan 29, 2025
1 parent 84ea2b1 commit 245c6ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RemoteFile/RemoteHandlers/SSHHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,11 @@ public override void CreateEmptyStoreFile(string path, string linuxFilePermissio

if (IsStoreServerLinux)
{
SplitStorePathFile(path, out path, out _);
string pathOnly = string.Empty;
SplitStorePathFile(path, out pathOnly, out _);

linuxFilePermissions = string.IsNullOrEmpty(linuxFilePermissions) ? GetFolderPermissions(path) : linuxFilePermissions;
linuxFileOwner = string.IsNullOrEmpty(linuxFileOwner) ? GetFolderOwner(path) : linuxFileOwner;
linuxFilePermissions = string.IsNullOrEmpty(linuxFilePermissions) ? GetFolderPermissions(pathOnly) : linuxFilePermissions;
linuxFileOwner = string.IsNullOrEmpty(linuxFileOwner) ? GetFolderOwner(pathOnly) : linuxFileOwner;

AreLinuxPermissionsValid(linuxFilePermissions);
RunCommand($"install -m {linuxFilePermissions} -o {linuxFileOwner} {linuxFileGroup} /dev/null {path}", null, ApplicationSettings.UseSudo, null);
Expand Down

0 comments on commit 245c6ea

Please sign in to comment.