Skip to content

Commit

Permalink
scripts UPDATE option to disable running DS
Browse files Browse the repository at this point in the history
Refs #1563
  • Loading branch information
michalvasko committed Apr 17, 2024
1 parent b17f851 commit a58b98f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ LN2_MODDIR=${DESTDIR}${LN2_MODULE_DIR}
PERMS=${NP2_MODULE_PERMS}
OWNER=${NP2_MODULE_OWNER}
GROUP=${NP2_MODULE_GROUP}
DISABLE_RUNNING=${NP2_DISABLE_RUNNING}

# functions
function INSTALL_MODULE_CMD() {
Expand All @@ -28,6 +29,9 @@ function INSTALL_MODULE_CMD() {
fi

CMD_INSTALL="$CMD_INSTALL -i $1/$2 -p '$PERMS'"
if [ ! -z "${DISABLE_RUNNING}" ]; then
CMD_INSTALL="$CMD_INSTALL -m 'running:'"
fi
if [ ! -z "${OWNER}" ]; then
CMD_INSTALL="$CMD_INSTALL -o '$OWNER'"
fi
Expand Down

0 comments on commit a58b98f

Please sign in to comment.