16636: add 'containers_longest_wait_time_seconds' metric: a gauge that
[arvados.git] / build / rails-package-scripts / prerm.sh
1 #!/bin/sh
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 # This code runs after package variable definitions and step2.sh.
7
8 remove () {
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
17 }
18
19 if [ "$1" = 'remove' ]; then
20   # This is a debian-based system and removal was requested
21   remove
22 elif [ "$1" = "0" ] || [ "$1" = "1" ] || [ "$1" = "2" ]; then
23   # This is an rpm-based system
24   remove
25 fi