Remove deprecated packager environment variables

pull/11796/head
Oliver Günther 2 years ago
parent a9ee223e28
commit 02566d8a16
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 11
      packaging/addons/openproject/bin/postinstall
  2. 3
      packaging/conf/configuration.yml

@ -63,16 +63,19 @@ rake_commands="db:migrate db:seed"
# set rails_cache_store # set rails_cache_store
memcached_servers="$(${CLI} config:get MEMCACHED_SERVERS || echo "")" memcached_servers="$(${CLI} config:get MEMCACHED_SERVERS || echo "")"
if [ -z "$memcached_servers" ]; then if [ -z "$memcached_servers" ]; then
${CLI} config:set RAILS_CACHE_STORE=file_store ${CLI} config:set OPENPROJECT_RAILS__CACHE__STORE=file_store
else else
${CLI} config:set RAILS_CACHE_STORE=memcache ${CLI} config:set OPENPROJECT_RAILS__CACHE__STORE=memcache
fi fi
${CLI} config:unset RAILS_CACHE_STORE
# create attachments folder # create attachments folder
attachments_path=$(${CLI} config:get ATTACHMENTS_STORAGE_PATH || echo "/var/db/${APP_NAME}/files") attachments_path=$(${CLI} config:get OPENPROJECT_ATTACHMENTS__STORAGE__PATH || ${CLI} config:get ATTACHMENTS_STORAGE_PATH || echo "/var/db/${APP_NAME}/files")
mkdir -p "${attachments_path}" mkdir -p "${attachments_path}"
chown ${APP_USER}.${APP_GROUP} "${attachments_path}" chown ${APP_USER}.${APP_GROUP} "${attachments_path}"
${CLI} config:set ATTACHMENTS_STORAGE_PATH="${attachments_path}" ${CLI} config:set OPENPROJECT_ATTACHMENTS__STORAGE__PATH="${attachments_path}"
${CLI} config:unset ATTACHMENTS_STORAGE_PATH
# set web host # set web host
${CLI} config:set HOST=127.0.0.1 ${CLI} config:set HOST=127.0.0.1

@ -35,9 +35,6 @@
################################################################# #################################################################
default: default:
rails_cache_store: <%= ENV.fetch('RAILS_CACHE_STORE') { :memcache }.to_sym %>
session_store: <%= ENV.fetch('SESSION_STORE') { :active_record_store }.to_sym %>
attachments_storage_path: <%= ENV.fetch('ATTACHMENTS_STORAGE_PATH') { "/var/db/_APP_NAME_/files" } %>
<% git_configured = ENV['GIT_REPOSITORIES'].present? %> <% git_configured = ENV['GIT_REPOSITORIES'].present? %>
<% svn_configured = ENV['SVN_REPOSITORIES'].present? %> <% svn_configured = ENV['SVN_REPOSITORIES'].present? %>
<% if git_configured || svn_configured %> <% if git_configured || svn_configured %>

Loading…
Cancel
Save