mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
remove
This commit is contained in:
parent
dcc56bba1d
commit
cf9cc8aaf8
1 changed files with 2 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
|||
#!/bin/bash
|
||||
app=odoo
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
database=${domain//./-}
|
||||
instance=$(sudo yunohost app setting $app instance)
|
||||
|
||||
# Remove database
|
||||
sudo -u postgres dropdb ${domain//./-}
|
||||
sudo -u postgres dropdb $database
|
||||
|
||||
# If removing master instance, remove Odoo.
|
||||
if [ "$instance" = "master" ]; then
|
||||
|
|
Loading…
Reference in a new issue