Adding Attic support to mount_shares_locally

arnonm
Posts: 3
Joined: Mon Apr 09, 2012 1:09 pm

Adding Attic support to mount_shares_locally

Postby arnonm » Mon Apr 09, 2012 1:10 pm

Small improvement to mount_shares_locally. Add the following line after the sleep 10:

/usr/bin/testparm -s 2>/dev/null | grep -oE "Greyhole Trash|Greyhole Attic|Greyhole Recycle Bin" | xargs -d "\n" mkdir -p

Will also create the appropriate Trash folder if you have it enabled

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Adding Attic support to mount_shares_locally

Postby bigfoot65 » Mon Apr 09, 2012 2:12 pm

That is great! Would you mind adding his to the wiki? We would greatly appreciate it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Adding Attic support to mount_shares_locally

Postby modem7 » Mon Apr 23, 2012 5:35 am

I can't seem to get this to add the shares manually.

Gives an error w/ mkdir.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Adding Attic support to mount_shares_locally

Postby bigfoot65 » Mon Apr 23, 2012 8:38 am

Did you add the share via the Amahi Dashboard? The Greyhole Attic/Trash has to be added there. There should be guidance in the wiki or on the Greyhole web site to address this procedure.

Also, after adding it the mount_shares_locally should automatically pick it up, so there is no need for the step to add it. I checked mine and never added it to the script, but it is mounted locally.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Adding Attic support to mount_shares_locally

Postby modem7 » Thu Apr 26, 2012 4:02 am

All working now.

Many thanks!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Adding Attic support to mount_shares_locally

Postby bigfoot65 » Thu Apr 26, 2012 4:53 am

Small improvement to mount_shares_locally. Add the following line after the sleep 10:

/usr/bin/testparm -s 2>/dev/null | grep -oE "Greyhole Trash|Greyhole Attic|Greyhole Recycle Bin" | xargs -d "\n" mkdir -p

Will also create the appropriate Trash folder if you have it enabled
There is no need to do this manually. If you create the share as described in the Dashboard and have the mount_shares_locally script running, it will pick it up automatically.

If there is something I am missing, please let me know.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 19 guests