I use some simple bash scripts to upload files via sftp to my nextcloud with database refresh over occ. Also i use sharingpath to get fixed links in case i need to renew or rebuild something so the sharelink stays the same as long as the folder structure and domain stays the same too.
Now I would like to set the sharing flag from within the script so I dont have to manually click the + sign everytime i upload something per script.
Is there a way to achieve this?
Also would it be possible to password protect a file and to implement this password into the sharelink for unattenend download? Lets say the link has to be used by an app that has to access this file but without password prompt.
My goal is to restrict access to a link by renewing the password so only the last who gets the link can access it