Appdynamics / Appdynamics/HA-toolkit
replicate.sh fragility in checking that init scripts are properly installed
- Dominant language
- Shell
- Stars
- 13
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.