This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"access_token": "ya29.Gl1VB3ETG6Q7KNV5pEPAkwNSPBQTfN0hqCWL738yozvKO2iFrRmNSTsQNhweyqZRaXY7OgCjr7zqv6QdEeIuB_2f_lkezhls1E_COGbnkwOKrEGbhdgqpsNvuG8YVo0", "expires_in": 3600, "scope": ["https://www.googleapis.com/auth/photoslibrary.sharing", "https://www.googleapis.com/auth/photoslibrary.readonly"], "token_type": "Bearer", "expires_at": 1564523771.4965656, "refresh_token": "1/HG0feqbbu7FZLjztEbGneV0Jz2aNoiNYuFIHvcZ9MgQ"} | ||
{"access_token": "ya29.Gl1WB4CwD_sE9T0LnmkMSSjesZknrhxOdf0sJ-uxlFOgAFfPz29YbCdn05RuQ4XZEGXXdh0ykeM3HVk0ufMQTxElwBPFmvN4OmzwcAgRNI-L4DWGszwEfyt1XHt_vOo", "expires_in": 3600, "scope": ["https://www.googleapis.com/auth/photoslibrary.sharing", "https://www.googleapis.com/auth/photoslibrary.readonly"], "token_type": "Bearer", "expires_at": 1564572955.0487018, "refresh_token": "1/HG0feqbbu7FZLjztEbGneV0Jz2aNoiNYuFIHvcZ9MgQ"} |
27407ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to chmod here? On TrueNAS with a CIFS (smb/windows share) chmod is not permitted and only works sometimes.
27407ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The umask is not honoured otherwise. As I remember the file is initially created in tmp with fixed permissions. On linux filesystems users expect the user mask to define group and all user permissions and this was not happening.
It should be pretty easy to skip this step for some filesystems for which it is not relevant.
27407ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for your quick answer! As the ACL on the share is open anyway, the umask should not matter. Cloned the repo locally and skipped this line, script is working like a charm, many many thanks for your effort!