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