7356: CentOS 6 needs a Python 3 backport for websocket-client.
[arvados-dev.git] / jenkins / arvados-sso-server-extras / arvados-sso-server.prerm
1 #!/bin/sh
2
3 set -e
4
5 INSTALL_PATH=/var/www/arvados-sso
6 RELEASE_PATH=$INSTALL_PATH/current
7 SHARED_PATH=$INSTALL_PATH/shared
8 CONFIG_PATH=/etc/arvados/sso
9
10 remove () {
11   rm -f $RELEASE_PATH/config/database.yml
12   rm -f $RELEASE_PATH/config/environments/production.rb
13   rm -f $RELEASE_PATH/config/application.yml
14   rm -rf $RELEASE_PATH/public/assets/
15   rm -rf $RELEASE_PATH/tmp
16   rm -rf $RELEASE_PATH/.bundle
17   rm $RELEASE_PATH/log || true
18 }
19
20 if [ "$1" = 'remove' ]; then
21   # This is a debian-based system and removal was requested
22   remove
23 elif [ "$1" = "0" ] || [ "$1" = "1" ] || [ "$1" = "2" ]; then
24   # This is an rpm-based system
25   remove
26 fi