Browse Source

ee secure minor fix

old-stable
Mitesh Shah 11 years ago
parent
commit
f82a6a3ab5
  1. 11
      bin/easyengine

11
bin/easyengine

@ -26,6 +26,7 @@ if [ "$EE_FIRST" = "version" ] || [ "$EE_FIRST" = "--version" ] || [ "$EE_FIRST"
# Display Easy Engine Version
echo "EasyEngine (ee) version: $EE_VERSION"
# EasyEngine help
elif [ "$EE_FIRST" = "help" ] || [ "$EE_FIRST" = "--help" ] || [ "$EE_FIRST" = "-h" ]; then
# Display man page
man ee
@ -470,6 +471,7 @@ elif [ "$EE_FIRST" = "site" ]; then
ee_lib_echo_escape "\tdelete\tDelete existing website"
fi
# EasyEngine debug
elif [ "$EE_FIRST" = "debug" ]; then
# Default action
EE_DEBUG="--start"
@ -567,13 +569,14 @@ elif [ "$EE_FIRST" = "debug" ]; then
fi
fi
# EasyEngine secure
elif [ "$EE_FIRST" = "secure" ]; then
if [ "$EE_SECOND" = "--auth" ]; then
ee_mod_secure_auth
elif [ "$EE_SECOND" = "--port" ]; then
ee_mod_secure_port
if [ "$EE_SECOND" = "--auth" ] || [ "$EE_SECOND" = "--port" ]; then
ee_mod_secure_$(echo $EE_SECOND | sed 's/--//')
ee_lib_service nginx reload
fi
# EasyEngine update
elif [ "$EE_FIRST" = "update" ]; then
ee_lib_echo "Please set/use following alias to update EasyEngine (ee)"
echo "alias eeupdate=\"wget -qO /tmp/eeupdate https://raw.githubusercontent.com/rtCamp/easyengine/refactor/bin/update && sudo bash /tmp/eeupdate\""

Loading…
Cancel
Save