diff options
| author | Jean-Baptiste Holcroft <jean-baptiste@holcroft.fr> | 2018-05-01 11:29:25 +0200 |
|---|---|---|
| committer | Jean-Baptiste Holcroft <jean-baptiste@holcroft.fr> | 2018-05-01 11:29:25 +0200 |
| commit | f0b132281241bcfdc38be62dd79324b78a4972f2 (patch) | |
| tree | ef9688ca0989097d0b47f78bd093a588475da22a /scripts/remove | |
| parent | 1925b3026b2affacd95464ee98525b156313cfb4 (diff) | |
| download | mastodon_ynh-f0b132281241bcfdc38be62dd79324b78a4972f2.tar.gz mastodon_ynh-f0b132281241bcfdc38be62dd79324b78a4972f2.tar.bz2 mastodon_ynh-f0b132281241bcfdc38be62dd79324b78a4972f2.zip | |
Use latest PostgreSQL helpers
Diffstat (limited to 'scripts/remove')
| -rw-r--r-- | scripts/remove | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/remove b/scripts/remove index 6683c07..e60ed37 100644 --- a/scripts/remove +++ b/scripts/remove @@ -65,8 +65,9 @@ then fi # delete postgresql database & user -ynh_psql_drop_db "${app}_production" -ynh_psql_drop_role "${app}" +db_user=$(ynh_sanitize_dbid "$app") +db_name=$(ynh_sanitize_dbid "$app") +ynh_psql_remove_db "$db_name" "$db_user" # Remove Debian package sudo apt-get remove --purge -y yarn |
