]> ###2025.03.02 - small bug fixes, drop dc for calculations ###2025.02.23 - small bug fixes, typo and reenable standard mover on uninstall without reboot - optionally run now manually button ###2025.02.22 - small bug fixes - option to turn off standard mover to run as only mover option ###2025.01.21 - small text corrections - simple mover addon, mainly considered for Media Files to keep on cache - NO replacement for regular mover or mover tuning, actually mover tuning is mandatory for exclusion **Simple Mover** - simple mover addon, mainly considered for Media Files to keep on cache - NO replacement for regular mover or mover tuning, actually mover tuning is mandatory for exclusion &gitURL;/packages/&name;.txz echo "Checking executable flags..." if [ -f /usr/local/emhttp/plugins/simple-mover/scripts/none ]; then if [ ! -x /usr/local/emhttp/plugins/simple-mover/scripts/none ]; then chmod +x /usr/local/emhttp/plugins/simple-mover/scripts/* echo "scripts are executable." else echo "scripts where already executable." fi else echo "script doesn't exist." fi mkdir -p /usr/local/emhttp/plugins/simple-mover/lists/ touch /usr/local/emhttp/plugins/simple-mover/lists/simple_mover_log.txt touch /usr/local/emhttp/plugins/simple-mover/lists/simple_mover_I_log.txt echo "+==============================================================================" echo "| default configuration if not existend" def_settingsfile="/usr/local/emhttp/plugins/simple-mover/default_simplemoversettings" settingsfile="/boot/config/plugins/simple-mover/simplemoversettings" if test -f "$settingsfile"; then echo "| $FILE already there" else cp $def_settingsfile $settingsfile echo "| copy default $FILE" fi echo "+==============================================================================" echo "+==============================================================================" echo "| Starting Actions and Simple Mover if crons where set ..." touch /boot/config/plugins/simple-mover/simplemoversettings sed -i 's/^simple_cron_state=.*//' /boot/config/plugins/simple-mover/simplemoversettings sed -i 's/^simple_I_cron_state=.*//' /boot/config/plugins/simple-mover/simplemoversettings sed -i '/^$/d' /boot/config/plugins/simple-mover/simplemoversettings echo 'simple_cron_state=""' >> /boot/config/plugins/simple-mover/simplemoversettings echo 'simple_I_cron_state=""' >> /boot/config/plugins/simple-mover/simplemoversettings /usr/local/emhttp/plugins/simple-mover/scripts/simple_cron.sh /usr/local/emhttp/plugins/simple-mover/scripts/simple_I_cron.sh if [ ! -z "$(crontab -l | grep -i Simple_Mover)" ]; then echo "| cronjob for Simple Mover started" sed -i 's/^simple_cron_state=.*/simple_cron_state="started"/' /boot/config/plugins/simple-mover/simplemoversettings else echo "| cron for Simple Mover not started" sed -i 's/^simple_cron_state=.*/simple_cron_state="stopped"/' /boot/config/plugins/simple-mover/simplemoversettings fi if [ ! -z "$(crontab -l | grep -i Simple_Basic_Mover)" ]; then echo "| cronjob for Simple Basic Mover started" sed -i 's/^simple_I_cron_state=.*/simple_I_cron_state="started"/' /boot/config/plugins/simple-mover/simplemoversettings else echo "| cron for Simple Basic Mover not started" sed -i 's/^simple_I_cron_state=.*/simple_I_cron_state="stopped"/' /boot/config/plugins/simple-mover/simplemoversettings fi echo "+==============================================================================" /usr/local/emhttp/plugins/simple-mover/scripts/simple_disable.sh rm -f $(ls &plgPATH;/&name;*.txz 2>/dev/null|grep -v '&version;') echo "Removing &name;..." removepkg &plgPATH;/*.txz 1> /dev/null rm -rf &plgPATH; rm -rf &emhttp; sed -i 's/^simple_cron_state=.*//' /boot/config/plugins/simple-mover/simplemoversettings sed -i 's/^simple_I_cron_state=.*//' /boot/config/plugins/simple-mover/simplemoversettings sed -i '/^$/d' /boot/config/plugins/simple-mover/simplemoversettings sed -i "/simple_mover/d" /usr/local/sbin/mover echo "&name; has been removed"