New page for module download https://pirinel.ro/3rdpartyapps (April 26, 2023)


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To manually remove a module in SSH
#1
where $modulename is the name of module

Log in SSH and type
Run this command to see a  list with modules name
Code:
ls -h /raid/data/module

See the module name you want to remove and replace in the following command.
By this command, $modulename string is assigned to the module name to be replaced

Code:
modulename=replace_this_with_module_name_to_remove

Run this command to be sure the $modulename string is assigne correctly, to avoid deleting the wrong files
Code:
echo $modulename

If the $modulename is assigned correctly, run the following commands and don't change anything on them to avoid deleting the wrong files
Code:
/raid/data/module/cfg/module.rc/$modulename.rc stop
rm -rf "/raid/data/module/cfg/module.rc/$modulename.rc"
rm -rf "/raid/data/module/$modulename"
rm -f "/img/htdocs/module/$modulename"
/opt/bin/sqlite /raid/data/module/cfg/module.db "delete from module where name = '$modulename'"
/opt/bin/sqlite /raid/data/module/cfg/module.db "delete from mod where module = '$modulename'"


after that your module is uninstall and is not any more on the Webui list, better is to reboot NAS to be sure to clean process list
------------------------------------------------------------------------
[Image: linkedinbutton.jpg]
Please respect my work and dont share my modules
[-] The following 1 user says Thank You to outkastm for this post:
  • zeropoint
Reply
#2
hello sir
what is rtorrent module as modulename?

Thank you

Code:
$modulname=rTorrent
/raid/data/module/cfg/module.rc/$rTorrent.rc stop
rm -rf "/raid/data/module/cfg/module.rc/$rTorrent.rc"
rm -rf "/raid/data/module/$rTorrent"
rm -f "/img/htdocs/module/$rTorrent"
/opt/bin/sqlite /raid/data/module/cfg/module.db "delete from module where name = '$rTorrent'"
/opt/bin/sqlite /raid/data/module/cfg/module.db "delete from mod where module = '$rTorrent'"

rm: can't remove '/raid/data/module/Plex/sys': Directory not empty
rm: can't remove '/raid/data/module/Plex': Directory not empty
rm: can't remove '/raid/data/module': Directory not empty
N4800Eco:~# rm -f "/img/htdocs/module/$modulename"
N4800Eco:~# /opt/bin/sqlite /raid/data/module/cfg/module.db "delete from module where name = '$modulename'"
Error: unable to open database "/raid/data/module/cfg/module.db": unable to open database file
N4800Eco:~# /opt/bin/sqlite /raid/data/module/cfg/module.db "delete from mod where module = '$modulename'"
Error: unable to open database "/raid/data/module/cfg/module.db": unable to open database file
N4800Eco:~# $modulname=rTorrent
-sh: =rTorrent: command not found
N4800Eco:~# /raid/data/module/cfg/module.rc/$rTorrent.rc stop
-sh: /raid/data/module/cfg/module.rc/.rc: No such file or directory
N4800Eco:~# rm -rf "/raid/data/module/cfg/module.rc/$rTorrent.rc"
N4800Eco:~# rm -rf "/raid/data/module/$rTorrent"
N4800Eco:~# rm -f "/img/htdocs/module/$rTorrent"
N4800Eco:~# /opt/bin/sqlite /raid/data/module/cfg/module.db "delete from module where name = '$rTorrent'"
Error: unable to open database "/raid/data/module/cfg/module.db": unable to open database file
N4800Eco:~# /opt/bin/sqlite /raid/data/module/cfg/module.db "delete from mod where module = '$rTorrent'"
Error: unable to open database "/raid/data/module/cfg/module.db": unable to open database file
N4800Eco:~#
N4800Eco:~#
and.... all my modules is gone... Sad
Reply
#3
Sorry for that.
You type $rTorrent instead of $modulename as in the guide for rm commands. Because $rTorrent attribute is not defined previously, is considered as empty and will delete the path before this attribute.

I've updated this guide with more detailed info for unexperienced users.

For everyone, keep in mind that running commands in SSH is for experienced users and on your own risk, as running some wrong command can delete all the files on your NAS.
------------------------------------------------------------------------
[Image: linkedinbutton.jpg]
Please respect my work and dont share my modules
[-] The following 1 user says Thank You to outkastm for this post:
  • zeropoint
Reply
#4
No problem sir. Thank you for your effort.
Why my rutorrent module showing not correct time?
Edit php.ini but I can't.
Reply
#5
You have a typo "$modulname=" "$modulename.rc" and etc.

Also the this line does not work on OS5:
N7510:~# $modulename=rTorrent
-sh: =rtorrent: command not found
N7510/8Gb/2.06.02.10.cdv
Reply
#6
use

Code:
modulename=rTorrent
------------------------------------------------------------------------
[Image: linkedinbutton.jpg]
Please respect my work and dont share my modules
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)