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
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
20 if [ "$1" = 'remove' ]; then
21 # This is a debian-based system and removal was requested
23 elif [ "$1" = "0" ] || [ "$1" = "1" ] || [ "$1" = "2" ]; then
24 # This is an rpm-based system