Created
February 7, 2020 09:32
-
-
Save t2d/73b2bd51584809c4f7b751dd5faf3738 to your computer and use it in GitHub Desktop.
Remove onlyoffice-documentserver package and all it's dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
supervisorctl stop ds:converter | |
supervisorctl stop ds:docservice | |
supervisorctl stop ds:gc | |
supervisorctl stop ds:metrics | |
supervisorctl stop ds:spellchecker | |
apt -y purge onlyoffice-documentserver | |
# speed up uninstall | |
# ps aux | grep node | grep shutdown | awk '{ print $2 }'| xargs kill -9 | |
apt -y purge redis-server rabbitmq-server postgresql postgresql-11 postgresql-common postgresql-client-common nodejs supervisor nginx* | |
apt -y purge libx11-data fontconfig-config fonts-dejavu-core | |
apt -y autoremove | |
rm -r /var/www/onlyoffice/ /etc/onlyoffice/ /var/log/onlyoffice /var/lib/onlyoffice | |
rm -r /var/log/postgresql /var/lib/postgresql /etc/postgresql /usr/include/postgresql /var/run/postgresql/ /etc/postgresql-common | |
rm -r /etc/nginx /var/log/nginx /var/lib/nginx /etc/nginx /etc/ufw/applications.d/nginx /etc/logrotate.d/nginx /etc/init.d/nginx /etc/default/nginx /var/www | |
rm -r /usr/lib/rabbitmq | |
rm -r /var/log/redis /var/lib/redis | |
rm -r /var/log/supervisor | |
rm -r /root/.npm-global /usr/local/lib/npm /usr/lib/node_modules/ /root/.erlang.cookie /root/.npm/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment