mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-20 19:23:06 +00:00
fix(migrations): Remove unexpected shell call
This patch removes the call of `/usr/bin/env` when calling the migration script in favour of using the processes own nodejs invocation path. This should drop the requirement for `/usr/bin/env` to exist on a system/in a container that runs hedgedoc. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
b11c768bd8
commit
dd539273fb
2 changed files with 4 additions and 1 deletions
|
@ -3,7 +3,7 @@ const { spawnSync } = require('child_process')
|
|||
const path = require('path')
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
const cleanup = spawnSync('./bin/cleanup', { cwd: path.resolve(__dirname, '../../') })
|
||||
const cleanup = spawnSync(process.argv[0], ['./bin/cleanup'], { cwd: path.resolve(__dirname, '../../') })
|
||||
if (cleanup.status !== 0) {
|
||||
throw new Error('Unable to cleanup')
|
||||
}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
## <i class="fa fa-tag"></i> 1.x.x <i class="fa fa-calendar-o"></i> UNRELEASED
|
||||
|
||||
### Enhancements
|
||||
- Remove unexpected shell call during migrations
|
||||
|
||||
This release drops support for Node.js 12, as it has reached end-of-life.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue