mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
Fix pgsql removal
This commit is contained in:
parent
b3eca428ce
commit
4e4e4331e1
1 changed files with 1 additions and 2 deletions
|
@ -34,7 +34,6 @@ ynh_print_info "Removing the PostgreSQL database"
|
||||||
ynh_psql_execute_as_root "\connect $db_name
|
ynh_psql_execute_as_root "\connect $db_name
|
||||||
SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = '$db_name';"
|
SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = '$db_name';"
|
||||||
ynh_psql_remove_db $db_name $db_name
|
ynh_psql_remove_db $db_name $db_name
|
||||||
ynh_psql_drop_user $db_name
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE DEPENDENCIES
|
# REMOVE DEPENDENCIES
|
||||||
|
@ -79,7 +78,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Remove a cron file
|
# Remove a cron file
|
||||||
ynh_secure_remove "/etc/cron.d/$app"
|
#ynh_secure_remove "/etc/cron.d/$app"
|
||||||
|
|
||||||
# Remove a directory securely
|
# Remove a directory securely
|
||||||
ynh_secure_remove "/etc/apt/sources.list.d/onlyoffice.list"
|
ynh_secure_remove "/etc/apt/sources.list.d/onlyoffice.list"
|
||||||
|
|
Loading…
Add table
Reference in a new issue