forked from opf/openproject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·25 lines (18 loc) · 950 Bytes
/
Copy pathsetup
File metadata and controls
executable file
·25 lines (18 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# Set RELEASE_DATE for the application
date +%F > config/RELEASE_DATE
# Copy default database.yml
cp -f packaging/conf/database.yml config/database.yml
cp -f packaging/conf/configuration.yml config/configuration.yml
sed -i "s|config.public_file_server.enabled = false|config.public_file_server.enabled = true|" config/environments/production.rb
# Specific npmrc used for packaging
cp -f packaging/.npmrc .npmrc
# replace every occurrence of _APP_NAME_ with the corresponding application name we're packaging
find packaging/ -type f -print0 | xargs -0 sed -i "s|_APP_NAME_|${APP_NAME}|"
# Install newer version of postgresql libs for centos7
if [ "$TARGET" = 'el:7' ]; then
sudo yum remove -y postgresql-devel
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo yum install -y centos-release-scl-rh
sudo yum install -y postgresql13-devel
fi