generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from juan-ayala/feature/aem-sdk-path-updates
Create start-aem script
- Loading branch information
Showing
12 changed files
with
69 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
usage() { | ||
cat <<EOM | ||
Usage: $(basename $0) <service> | ||
where | ||
<service> is 'dispatcher' or 'author' or 'publish' | ||
EOM | ||
exit 1 | ||
} | ||
|
||
[ "${1}" = 'dispatcher' ] && service="${1}" | ||
[ "${1}" = 'author' ] && service="${1}" | ||
[ "${1}" = 'publish' ] && service="${1}" | ||
[ -z "${service}" ] && usage | ||
|
||
source "$(dirname $0)/_globals.sh" | ||
|
||
if [[ "${service}" == "dispatcher" ]]; then | ||
|
||
toolsdir="${AEM_SDK_FEATURE_DIR}/dispatcher" | ||
# setup if dispatcher directory is missing | ||
if [[ ! -d ${toolsdir} ]]; then | ||
$(dirname $0)/aem-sdk-setup-dispatcher.sh | ||
fi | ||
|
||
elif [[ "${service}" == "author" || "${service}" == "publish" ]]; then | ||
|
||
jar="${AEM_SDK_FEATURE_DIR}/${service}/$(get_runmode_jar ${service})" | ||
# setup aem if jar file is missing | ||
if [[ ! -f ${jar} ]]; then | ||
$(dirname $0)/aem-sdk-setup-service.sh ${service} | ||
fi | ||
fi | ||
|
||
bash -ci "start-${service}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+22 Bytes
(100%)
test/aem-sdk/defaults-with-sdk/aem-sdk-mock-2024.03.01.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+22 Bytes
(100%)
test/aem-sdk/options-with-sdk/sdksfolder/aem-sdk-mock-2024.02.01.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters