Skip to content

Commit

Permalink
Merge pull request #111 from FlowFuse/hardillb-patch-1
Browse files Browse the repository at this point in the history
both storage options required (enabled & path)
  • Loading branch information
knolleary authored Sep 5, 2024
2 parents 4bc0eff + 34285b5 commit 7d57a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const createContainer = async (project, domain) => {
contOptions.Env.push('NODE_EXTRA_CA_CERTS=/usr/local/ssl-certs/chain.pem')
}

if (this._app.config.driver.options?.storage?.enabled || this._app.config.driver.options?.storage?.path) {
if (this._app.config.driver.options?.storage?.enabled && this._app.config.driver.options?.storage?.path) {
try {
const localPath = path.join('/opt/persistent-storage', project.id)
console.log(`Creating dir in container ${localPath}`)
Expand Down

0 comments on commit 7d57a6d

Please sign in to comment.