mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
19 lines
No EOL
431 B
Bash
19 lines
No EOL
431 B
Bash
#!/bin/bash
|
|
app=kanboard
|
|
|
|
# Retrieve arguments
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|
|
|
# Remove sources
|
|
sudo rm -rf /var/www/$app
|
|
|
|
# Remove database
|
|
mysql -u root -p$root_pwd -e "DROP DATABASE $app ; DROP USER $app@localhost ;"
|
|
|
|
# Remove configuration files
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
# Restart services
|
|
sudo service nginx reload
|
|
sudo yunohost app ssowatconf |