mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 19:29:13 +08:00
feat(ql3): rehearse legacy sqlite upgrade
This commit is contained in:
@@ -138,8 +138,7 @@ function descriptor(kind, uid, gid, root, adopted = false) {
|
||||
|
||||
function legacyDescriptor(kind, uid, gid, port) {
|
||||
const nodeExecutable = fs.realpathSync(process.execPath);
|
||||
const commandArgs =
|
||||
`/workspace/scripts/ql3-service-manager-legacy-live-service.cjs ${port}`;
|
||||
const commandArgs = `/workspace/scripts/ql3-service-manager-legacy-live-service.cjs ${port}`;
|
||||
if (kind === 'systemd') {
|
||||
return [
|
||||
'[Unit]',
|
||||
@@ -298,6 +297,10 @@ function adoptedFixture(root, kind, uid, gid) {
|
||||
.createHash('sha256')
|
||||
.update(sourcePath)
|
||||
.digest('hex'),
|
||||
sourceSha256: crypto
|
||||
.createHash('sha256')
|
||||
.update(fs.readFileSync(sourcePath))
|
||||
.digest('hex'),
|
||||
recoverySha256: crypto
|
||||
.createHash('sha256')
|
||||
.update(fs.readFileSync(recoveryPath))
|
||||
|
||||
Reference in New Issue
Block a user