1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00

fix(admin-cli): Fixes immich-admin because npm bin does not like arguments (#3864)

* fix admin cli

* move script to bin, actually pass arguments

* remove accidentally created package-lock.json
This commit is contained in:
Daniel Dietzler 2023-08-27 16:35:49 +02:00 committed by GitHub
parent 912a13ea0d
commit 7097cf6319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

2
server/bin/admin-cli.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
./start.sh admin-cli $1

View File

@ -54,7 +54,7 @@
},
"bin": {
"immich": "bin/cli.sh",
"immich-admin": "start.sh admin-cli"
"immich-admin": "bin/admin-cli.sh"
},
"devDependencies": {
"@nestjs/cli": "^9.1.8",

View File

@ -7,7 +7,7 @@
"license": "UNLICENSED",
"bin": {
"immich": "./bin/cli.sh",
"immich-admin": "./start.sh admin-cli"
"immich-admin": "./bin/admin-cli.sh"
},
"scripts": {
"build": "nest build",

View File

@ -32,4 +32,4 @@ if [ "$REDIS_PASSWORD_FILE" ]; then
unset REDIS_PASSWORD_FILE
fi
exec node dist/main $1
exec node dist/main $@