You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
#!/bin/bash
|
|
|
|
### DO NOT EDIT THIS FILE
|
|
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &> /dev/null && pwd)/includes/bash_header"
|
|
|
|
function usage {
|
|
echo
|
|
echoMainTitle "Install Sumedia Project Manager"
|
|
echo
|
|
echoSubTitle "Usage:"
|
|
echo
|
|
echo "install-project-manager"
|
|
echo
|
|
echo "--help Prints this message"
|
|
echo
|
|
}
|
|
|
|
help="$(getParameter "--help" false "$@")"
|
|
if [ "$help" == true ]
|
|
then
|
|
usage
|
|
exit
|
|
fi
|
|
|
|
echo
|
|
echoMainTitle "Install Sumedia Project Manager"
|
|
|
|
echo
|
|
echoSubTitle "Please configure Sumedia Project Manager"
|
|
echo
|
|
|
|
workspaces_dir="$(readConsole "Workspaces dir" "Invalid selection" true "$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd)")"
|
|
apache_httpdocs="$(readConsole "Local Apache httpdocs dir (optional)" "Invalid selection" true)"
|
|
|
|
setConfig "project_manager.workspaces_dir" "$workspaces_dir"
|
|
setConfig "project_manager.apache_httpdocs" "$apache_httpdocs"
|
|
|
|
postScript "$project_manager_dir/bin/postscripts/commands/install-project-manager"
|
|
|
|
echo
|
|
echoSuccess "Project Manager has been installed."
|
|
echo
|