mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Merge pull request #268 from pitkley/267-dir-permissions
Set `g+w` on the consumption/export directories
This commit is contained in:
		
						commit
						1cb5bbd07d
					
				@ -25,16 +25,16 @@ set_permissions() {
 | 
				
			|||||||
          echo "failed."
 | 
					          echo "failed."
 | 
				
			||||||
          echo ""
 | 
					          echo ""
 | 
				
			||||||
          echo "Either try to set it on your host-mounted directory"
 | 
					          echo "Either try to set it on your host-mounted directory"
 | 
				
			||||||
          echo "directly, or make sure that the directory has \`o+x\`"
 | 
					          echo "directly, or make sure that the directory has \`g+wx\`"
 | 
				
			||||||
          echo "permissions and the files in it at least \`o+r\`."
 | 
					          echo "permissions and the files in it at least \`o+r\`."
 | 
				
			||||||
      } >&2
 | 
					      } >&2
 | 
				
			||||||
      chmod g+x "${!dir}" || {
 | 
					      chmod g+wx "${!dir}" || {
 | 
				
			||||||
          echo "Changing group permissions of ${cur_dir_name} directory:"
 | 
					          echo "Changing group permissions of ${cur_dir_name} directory:"
 | 
				
			||||||
          echo "  ${!dir}"
 | 
					          echo "  ${!dir}"
 | 
				
			||||||
          echo "failed."
 | 
					          echo "failed."
 | 
				
			||||||
          echo ""
 | 
					          echo ""
 | 
				
			||||||
          echo "Either try to set it on your host-mounted directory"
 | 
					          echo "Either try to set it on your host-mounted directory"
 | 
				
			||||||
          echo "directly, or make sure that the directory has \`o+x\`"
 | 
					          echo "directly, or make sure that the directory has \`g+wx\`"
 | 
				
			||||||
          echo "permissions and the files in it at least \`o+r\`."
 | 
					          echo "permissions and the files in it at least \`o+r\`."
 | 
				
			||||||
      } >&2
 | 
					      } >&2
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user