Skip to content
Snippets Groups Projects
Commit a86c8650 authored by Andrew Lee (李健秋)'s avatar Andrew Lee (李健秋)
Browse files

debian/obs-api.postrm: clean up api folder while purge.

parent 486ee77f
No related branches found
No related tags found
No related merge requests found
...@@ -16,13 +16,12 @@ if [ "$1" = "purge" ]; then ...@@ -16,13 +16,12 @@ if [ "$1" = "purge" ]; then
if which ucf >/dev/null 2>&1; then if which ucf >/dev/null 2>&1; then
ucf --purge /etc/obs/api/config/database.yml ucf --purge /etc/obs/api/config/database.yml
fi fi
rm -f /etc/obs/api/.bundle/config rm -rf /usr/share/obs/api
rm -f /etc/obs/api/config/secret.key rm -rf /usr/share/obs/overview
fi fi
if [ -L /usr/share/obs/api/vendor/rails ]; then if [ -L /usr/share/obs/api/vendor/rails ]; then
rm -f /usr/share/obs/api/vendor/rails rm -f /usr/share/obs/api/vendor/rails
fi fi
#DEBHELPER# #DEBHELPER#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment