dlandon / recycle.bin Goto Github PK
View Code? Open in Web Editor NEWRecycle bin for unRAID V6.4 and later.
License: Other
Recycle bin for unRAID V6.4 and later.
License: Other
When I exclude a share and delete files it still goes to the bin.
Without excluding a share the Recyle Bin plugin works as expected.
But I only want to enable recycle bin on 1 share. So I started excluding shares.
As soon when I did this and next I delete files on the exluded shares I see a ".Recycle" folder.
Unraid version: 6.12.4
Recycle Bin plugin version: 2023.08.12
I took a look at the recycle bin script but I don't understand some of the stuff:
elif [[ `cat /boot/config/smb-extra.conf | grep "vfs objects"` == '' ]]; then
if [ -e "/boot/config/smb-extra.conf" ]; then
sed '/#vfs_recycle_start/,/#vfs_recycle_end/{//d}' /boot/config/smb-extra.conf >> smb.tmp
printf %s "$(< smb.tmp)" > /boot/config/smb-extra.conf
rm smb.tmp
printf "\n" >> /boot/config/smb-extra.conf
cat /boot/config/plugins/recycle.bin/config/smb-extra.conf >> /boot/config/smb-extra.conf
fi
What is the sed trying to do? delete all the lines between the #vfs_recycle_*?
the way you went about it is rather inefficient and quite confusing for me.
Then the crontab has these:
if [[ `crontab -l | grep "# Purge recycle bin"` != "" ]]; then
crontab -l > /tmp/file; sed '/# Purge recycle bin/,/\/mnt\/user\/.Recycle.Bin/d' /tmp/file >> /tmp/cron; crontab /tmp/cron; rm /tmp/file; rm /tmp/cron
But shouldn't /mnt/user/.Recycle.Bin
not exist anywhere?
Also we are running as root and sudo is quite unnecessary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.