8491: move files from arvados-dev into their new places
[arvados.git] / build / rails-package-scripts / prerm.sh
1 #!/bin/sh
2 # This code runs after package variable definitions and step2.sh.
3
4 remove () {
5   rm -f $RELEASE_PATH/config/database.yml
6   rm -f $RELEASE_PATH/config/environments/production.rb
7   rm -f $RELEASE_PATH/config/application.yml
8   # Old API server configuration file.
9   rm -f $RELEASE_PATH/config/initializers/omniauth.rb
10   rm -rf $RELEASE_PATH/public/assets/
11   rm -rf $RELEASE_PATH/tmp
12   rm -rf $RELEASE_PATH/.bundle
13   rm -rf $RELEASE_PATH/log
14 }
15
16 if [ "$1" = 'remove' ]; then
17   # This is a debian-based system and removal was requested
18   remove
19 elif [ "$1" = "0" ] || [ "$1" = "1" ] || [ "$1" = "2" ]; then
20   # This is an rpm-based system
21   remove
22 fi