mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
fe072de37a
Postinstall for openproject is now in its own addon at https://github.com/pkgr/addon-openproject.
10 lines
447 B
Bash
Executable File
10 lines
447 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cp -f packaging/conf/configuration.yml config/configuration.yml
|
|
sed -i "s|config.serve_static_assets = false|config.serve_static_assets = true|" config/environments/production.rb
|
|
|
|
cp -f packaging/conf/000-establish-connection.rb config/initializers/
|
|
|
|
# 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}|"
|