RFE: Some way to confirm a custom script has completed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Server |
New
|
Undecided
|
Unassigned |
Bug Description
Problem:
A custom script is being used to do the equivalent of a do-release-upgrade for machines that use a local Landscape mirror and have limited network access. The script does not reliably report back success or failure (likely because the landscape-client is upgraded and the client service restarted as part of the upgrade).
To work around this, a curl command was added to the custom script that creates an entry in the Apache logs on the Landscape server. The client machine is then able, as part of the script, to somewhat independent of the landscape-client send a reply saying that the script has completed:
```
#!/bin/bash
sudo su - -c "
export DEBIAN_
apt-get clean
apt-get update
apt-get install -y --only-upgrade apt
apt-get -o Dpkg::Options:
curl -s http://<landscape-
```
This then shows up in the apache log under: /var/log/
Not entirely sure if this would be possible, but made sense to make the feature request either way.
information type: | Proprietary → Public |
It's essential to ensure the reliability of custom scripts for system upgrades. Consider implementing a similar logging mechanism in your <a href="https:/ /uifcalculator. co.za/">insurance tool</a> to track completion status for better monitoring and management.