mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
add remove script
This commit is contained in:
parent
6af11dfd3a
commit
3c628cc878
2 changed files with 11 additions and 1 deletions
|
@ -38,7 +38,7 @@ sudo mv /tmp/cronttrss /etc/cron.d/ttrss
|
|||
sudo mkdir $final_path/cache/{export,images,upload,js}
|
||||
sudo mkdir $final_path/{feed-icons,lock}
|
||||
|
||||
sudo chmod -R 777 cache/images && chmod -R 777 cache/upload && chmod -R 777 cache/export && chmod -R 777 cache/js && chmod -R 777 feed-icons && chmod -R 777 lock
|
||||
sudo chmod -R 777 $final_path/cache/images && chmod -R 777 $final_path/cache/upload && chmod -R 777 $final_path/cache/export && chmod -R 777 $final_path/cache/js && chmod -R 777 feed-icons && chmod -R 777 lock
|
||||
|
||||
|
||||
# Set permissions to ttrss directory
|
||||
|
|
10
scripts/remove
Normal file
10
scripts/remove
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
db_user=ttrss
|
||||
db_name=ttrss
|
||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||
domain=$(sudo yunohost app setting ttrss domain)
|
||||
|
||||
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user ;"
|
||||
sudo rm -rf /var/www/ttrss
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/ttrss.conf
|
Loading…
Reference in a new issue