mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
15 lines
465 B
Bash
15 lines
465 B
Bash
#!/bin/bash
|
|
|
|
domain=$(sudo yunohost app setting ghostblog domain)
|
|
|
|
sudo service ynh-ghostblog stop
|
|
sudo update-rc.d ynh-ghostblog remove
|
|
sudo rm /etc/init.d/ynh-ghostblog
|
|
sudo yunohost app service -R ynh-ghostblog
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/ghostblog.conf
|
|
sudo rm -f /var/log/ghostblog.log
|
|
sudo rm -rf /var/run/yunohost/ghostblog
|
|
sudo rm -f /etc/logrotate.d/ynh-ghostblog
|
|
|
|
# remove user so that it does not hold resource
|
|
sudo userdel --remove ghostblog
|