Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

enhancements on dep verify script

enhancements on env creation script
  • Loading branch information...
commit 23f77f3f5184a343f644993080ed8792a1791201 1 parent 1f96e89
@eldios authored
Showing with 6 additions and 5 deletions.
  1. +3 −2 dependencies_verify.sh
  2. +3 −3 env_creation.sh
View
5 dependencies_verify.sh
@@ -7,6 +7,7 @@ sys_dependencies=("node" "npm" "curl")
# define your npm dependencies here
declare -a npm_modules_dependencies
npm_modules_dependencies=("pool" "express" "request" "npm-wrapper" "daemon" "forever" "cradle")
+
# color used for printing
use_color=true
if ($use_color) ;
@@ -44,7 +45,7 @@ do
DEP_KO="I need $sys_dep and but it is missing." ;
printf '%s%*s%s' "$DEP_KO" $COL_KO "[${BLDRED}${KO_MSG}${NOCOLR}]" >&2;
echo ;
- new_len=$(( ${#deps_not_ok[@]} + 1 ))
+ new_len=$(( ${#sys_deps_not_ok[@]} + 1 ))
sys_deps_not_ok[$new_len]=$sys_dep
}
done
@@ -74,7 +75,7 @@ do
DEP_KO="I need $npm_mod and but it is missing." ;
printf '%s%*s%s' "$DEP_KO" $COL_KO "[${BLDRED}${KO_MSG}${NOCOLR}]" >&2;
echo ;
- new_len=$(( ${#deps_not_ok[@]} + 1 ))
+ new_len=$(( ${#npm_deps_not_ok[@]} + 1 ))
npm_deps_not_ok[$new_len]=$npm_mod
}
done
View
6 env_creation.sh
@@ -16,7 +16,7 @@ chmod -R 700 $HOME_DIR/.ssh
# ENABLING SUDO FOR THE NODESTER USER
echo "# nodester related rules
-nodester ALL = NOPASSWD: /var/nodester/nodester/proxy/start_proxy.sh *
-nodester ALL = NOPASSWD: /var/nodester/nodester/proxy/stop.sh
-nodester ALL = NOPASSWD: /var/nodester/nodester/scripts/launch_app.sh *
+$NODESTER_USER ALL = NOPASSWD: $NODESTER_HOME_DIR/nodester/proxy/start_proxy.sh *
+$NODESTER_USER ALL = NOPASSWD: $NODESTER_HOME_DIR/nodester/proxy/stop.sh
+$NODESTER_USER ALL = NOPASSWD: $NODESTER_HOME_DIR/nodester/scripts/launch_app.sh *
" >> /etc/sudoers
Please sign in to comment.
Something went wrong with that request. Please try again.