2 # This code runs after package variable definitions and step2.sh.
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
16 if [ "$1" = 'remove' ]; then
17 # This is a debian-based system and removal was requested
19 elif [ "$1" = "0" ] || [ "$1" = "1" ] || [ "$1" = "2" ]; then
20 # This is an rpm-based system