1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00: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 $@