replicate.sh fragility in checking that init scripts are properly installed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with replicate.sh and trace its md5 check against /etc/init.d scripts and the corresponding files in the HA directory. Then read install-init.sh, especially the -u option, to clarify the intended sequence for custom init scripts; done means custom scripts are checked successfully without false failures.
Written by the indexing model from the issue text.
Description
replicate.sh does a check (via md5) to see if the scripts installed in /etc/init,d match the ones in the HA directory
do
NEWMD5=$(md5sum $APPD_ROOT/HA/$s.sh | cut -d " " -f 1)
if [[ "$NEWMD5" != `$ssh $host md5sum /etc/init.d/$s|cut -d " " -f 1` ]] ; then
((errors++))
fi
done
When using custom init scripts (not using install-init.sh) this check fails.
The fix is to copy the custom /etc/init.d scripts to the HA directory with their proper names
*NOTE this kind of functionality may be resolved through use of "install-init.sh" with the "-u" option, but the sequence and proper steps are not clear from looking at that code.
- Dominant language
- Shell
- Stars
- 13
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Appdynamics/HA-toolkit
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Appdynamics/HA-toolkit#88 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Appdynamics/HA-toolkit#110 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Appdynamics/HA-toolkit#109 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
Appdynamics/HA-toolkit#107 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Appdynamics/HA-toolkit#106 ·
All issues in Appdynamics/HA-toolkit
Similar issues
-
docs(agents): strengthen the no-backslash-escaped-backticks rule with an issue-creation example Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 comment ·
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 91/100
alunduil/alunduil-chezmoi#792 ·
-
area: compat bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
zenhub-dev
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OpenLiberty/ci.docker#747 ·