Skip to content

Commit

Permalink
Merge pull request #13630 from opf/fix/49867/host-name-writable
Browse files Browse the repository at this point in the history
Check if host name is writable before trying to override it
  • Loading branch information
ulferts committed Sep 6, 2023
2 parents fe88bf0 + 6a07de6 commit a217b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/packager.rake
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace :packager do
# Persist configuration
Setting.sys_api_enabled = 1
Setting.sys_api_key = ENV.fetch('SYS_API_KEY', nil)
Setting.host_name = ENV.fetch('SERVER_HOSTNAME', Setting.host_name)
Setting.host_name = ENV.fetch('SERVER_HOSTNAME', Setting.host_name) if Setting.host_name_writable?

# SERVER_PROTOCOL is set by the packager apache2 addon
# other SERVER_PROTOCOL_xxx variables can be manually set by user
Expand Down

0 comments on commit a217b06

Please sign in to comment.