Commit 9f18a81f authored by Spctrl's avatar Spctrl

fix in db remove

parent 6ed7038a
......@@ -66,12 +66,15 @@ if ! [ -e /etc/apt/sources.list.d/erlang-solutions.list ]
then
mkdir --parents /etc/apt/sources.list.d/
touch /etc/apt/sources.list.d/erlang-solutions.list
echo "deb https://packages.erlang-solutions.com/debian stretch contrib" > /etc/apt/sources.list.d/erlang-solutions.list
echo "deb https://packages.?.com/debian stretch contrib" > /etc/apt/sources.list.d/erlang-solutions.list
wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
apt-key add erlang_solutions.asc
rm erlang_solutions.asc
fi
apt-get update
# TODO:
echo "For some reason I get an error during update the first time I try to install this."
echo "The second time it only gets 19 things instead of 51. Do I do something wrong when adding the erlang-solution?"
ynh_install_app_dependencies git build-essential postgresql-9.6 postgresql-contrib-9.6 elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools esl-erlang
#=================================================
......
......@@ -55,7 +55,7 @@ echo 'SELECT pg_terminate_backend(pg_stat_activity.pid)' >> drop_$db_name.psql
echo FROM pg_stat_activity >> drop_$db_name.psql
echo WHERE pg_stat_activity.datname = \'$db_name\' >> drop_$db_name.psql
echo ' AND pid <> pg_backend_pid();' >> drop_$db_name.psql
echo 'REVOKE ALL PRIVILEGES ON ALL TABLES IN db_name public FROM $app;' >> drop_$db_name.psql
echo 'REVOKE ALL PRIVILEGES ON ALL TABLES IN $db_name public FROM $app;' >> drop_$db_name.psql
echo 'REVOKE ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public FROM $app;' >> drop_$db_name.psql
echo 'REVOKE ALL PRIVILEGES ON ALL FUNCTIONS IN SCHEMA public FROM $app;' >> drop_$db_name.psql
echo 'REVOKE ALL PRIVILEGES ON SCHEMA public FROM $app;' >> drop_$db_name.psql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment