aboutsummaryrefslogtreecommitdiff
path: root/scripts/remove
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-05-31 13:38:55 +0200
committerGitHub <noreply@github.com>2018-05-31 13:38:55 +0200
commit301df81c1e34e541e3dd6fcba5037d5744646747 (patch)
tree6270f2ea2b6119815d8bbbbdb12bbdd99a94fd7f /scripts/remove
parentd720ad3db76c1560361105706bae2ea73832a4c3 (diff)
downloadmastodon_ynh-301df81c1e34e541e3dd6fcba5037d5744646747.tar.gz
mastodon_ynh-301df81c1e34e541e3dd6fcba5037d5744646747.tar.bz2
mastodon_ynh-301df81c1e34e541e3dd6fcba5037d5744646747.zip
Ready to Debian Stretch (#22)
* Ready to Debian Stretch * rb 2.5.1 on install * Yarn install on root * rails precompile fix * Fix backup on stretch * clean * fix backup stretch * Change systemd mastodon service restart * Change systemd script for stretch * Ready to mastodon 2.4.1
Diffstat (limited to 'scripts/remove')
-rw-r--r--scripts/remove15
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/remove b/scripts/remove
index 1b2c405..19ab132 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -23,24 +23,24 @@ domain=$(ynh_app_setting_get "$app" domain)
if [ -e "/etc/systemd/system/mastodon-web.service" ]; then
echo "Delete systemd script"
sudo systemctl stop mastodon-web.service
- ynh_secure_remove "/etc/systemd/system/mastodon-web.service"
sudo systemctl disable mastodon-web.service
+ ynh_secure_remove "/etc/systemd/system/mastodon-web.service"
fi
# Stop mastodon-sidekiq
if [ -e "/etc/systemd/system/mastodon-sidekiq.service" ]; then
echo "Delete systemd script"
sudo systemctl stop mastodon-sidekiq.service
- ynh_secure_remove "/etc/systemd/system/mastodon-sidekiq.service"
sudo systemctl disable mastodon-sidekiq.service
+ ynh_secure_remove "/etc/systemd/system/mastodon-sidekiq.service"
fi
# Stop mastodon-sidekiq
if [ -e "/etc/systemd/system/mastodon-streaming.service" ]; then
echo "Delete systemd script"
sudo systemctl stop mastodon-streaming.service
- ynh_secure_remove "/etc/systemd/system/mastodon-streaming.service"
sudo systemctl disable mastodon-streaming.service
+ ynh_secure_remove "/etc/systemd/system/mastodon-streaming.service"
fi
# Delete service on Yunohost monitoring
@@ -69,13 +69,10 @@ ynh_psql_drop_db "${app}_production"
ynh_psql_drop_role "${app}"
# Remove Debian package
-sudo apt-get remove --purge -y yarn
+#sudo apt-get remove --purge -y yarn
#sudo apt-get remove --purge -y imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file curl git
-# Delete redis package
#sudo apt-get remove --purge -y redis-server redis-tools
-# Delete postgresql package
#sudo apt-get remove --purge -y postgresql postgresql-contrib
-# Delete Ruby package
#sudo apt-get remove --purge -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
# Delete app directory and configurations
@@ -89,10 +86,10 @@ REMOVE_NGINX_CONF
ynh_secure_remove /etc/cron.d/$app
# Delete source.list
ynh_secure_remove /etc/apt/sources.list.d/backports.list
-ynh_secure_remove /etc/apt/sources.list.d/yarn.list
+#ynh_secure_remove /etc/apt/sources.list.d/yarn.list
# Delete ruby exec
-ynh_secure_remove /usr/bin/ruby
+#ynh_secure_remove /usr/bin/ruby
# Remove user
sudo userdel -f $app