mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
add remove DB
This commit is contained in:
parent
27b7c02858
commit
37c24f2f72
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ ynh_secure_remove "/etc/cron.d/$app"
|
|||
# Remove a directory securely
|
||||
ynh_secure_remove "/etc/apt/sources.list.d/onlyoffice.list"
|
||||
|
||||
# Remove DB
|
||||
sudo -i -u postgres psql -c "DROP DATABASE onlyoffice;"
|
||||
sudo -i -u postgres psql -c "DROP USER onlyoffice;"
|
||||
|
||||
# Remove the log files
|
||||
ynh_secure_remove "/var/log/$app/"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue