2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
6 # This code runs after package variable definitions and step2.sh.
9 rm -f $RELEASE_PATH/config/database.yml
10 rm -f $RELEASE_PATH/config/environments/production.rb
11 rm -f $RELEASE_PATH/config/application.yml
12 # Old API server configuration file.
13 rm -rf $RELEASE_PATH/public/assets/
14 rm -rf $RELEASE_PATH/tmp
15 rm -rf $RELEASE_PATH/.bundle
16 rm -rf $RELEASE_PATH/log
19 if [ "$1" = 'remove' ]; then
20 # This is a debian-based system and removal was requested
22 elif [ "$1" = "0" ] || [ "$1" = "1" ] || [ "$1" = "2" ]; then
23 # This is an rpm-based system