Skip to content

PATH change should be lower #8

@NekoiNemo

Description

@NekoiNemo
# Setup the path to include local node
PATH=$PWD/node/bin:$PATH

# Get the directory of the script
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
pushd $SCRIPT_DIR

This adds $PWD/node/bin to the PATH before actually changing into the script's dir, meaning $PWD would evaluate to user's home dir when running the script from the systemd service.

Those two blocks should probably be in the opposite order.

See: issue in Discord

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions