1
0
Fork 0
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:
yalh76 2019-02-25 23:35:33 +01:00
parent b3eca428ce
commit 4e4e4331e1

View file

@ -34,7 +34,6 @@ ynh_print_info "Removing the PostgreSQL database"
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';"
ynh_psql_remove_db $db_name $db_name
ynh_psql_drop_user $db_name
#=================================================
# REMOVE DEPENDENCIES
@ -79,7 +78,7 @@ fi
#=================================================
# Remove a cron file
ynh_secure_remove "/etc/cron.d/$app"
#ynh_secure_remove "/etc/cron.d/$app"
# Remove a directory securely
ynh_secure_remove "/etc/apt/sources.list.d/onlyoffice.list"