Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Olorunfemi Kawonise authored and Olorunfemi Kawonise committed Jul 2, 2023
1 parent 68169ea commit 866d8da
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions scripts/stopApp.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#!/bin/bash
registry_url="https://52.207.254.164:8081/repository/fintech-app-release/"

# Provide your Nexus registry username and password
username=admin
password=admin123

# Set your npm username and password
NPM_USERNAME="admin"
NPM_PASSWORD="admin123"

# Run the npm login command with provided credentials
echo -e "${NPM_USERNAME}\n${NPM_PASSWORD}\n\n" | npm login --registry=https://52.207.254.164:8081/repository/fintech-app-release/
# Run npm login command using expect
expect <<EOF
spawn npm login --registry="$registry_url"
expect "Username: "
send "$username\r"
expect "Password: "
send "$password\r"
expect "Email: (this IS public) "
send "\r"
expect eof
EOF

0 comments on commit 866d8da

Please sign in to comment.