mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +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:
parent
912a13ea0d
commit
7097cf6319
4 changed files with 5 additions and 3 deletions
2
server/bin/admin-cli.sh
Executable file
2
server/bin/admin-cli.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env sh
|
||||
./start.sh admin-cli $1
|
2
server/package-lock.json
generated
2
server/package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -32,4 +32,4 @@ if [ "$REDIS_PASSWORD_FILE" ]; then
|
|||
unset REDIS_PASSWORD_FILE
|
||||
fi
|
||||
|
||||
exec node dist/main $1
|
||||
exec node dist/main $@
|
||||
|
|
Loading…
Reference in a new issue