19 lines
582 B
Bash
19 lines
582 B
Bash
#!/bin/bash
|
|
|
|
# Load NVM
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
|
use v22.13.1
|
|
|
|
# Define the working directory
|
|
WORKDIR="/root/permit-api"
|
|
CRON_DIR="$WORKDIR/cron"
|
|
|
|
# Navigate to the working directory
|
|
cd "$WORKDIR" || { echo "Failed to change directory to $WORKDIR"; exit 1; }
|
|
|
|
node --env-file=.env "$CRON_DIR/configUpdate.js"
|
|
node --env-file=.env "$CRON_DIR/analytics.js"
|
|
node --env-file=.env "$CRON_DIR/notificationCleanup.js" |