Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
Bhaskar Brahma 718f98b7b0 Updated extension version 2019-10-07 14:14:16 -07:00
Bhaskar Brahma e57d26685d changed retry frequenc, added more error messages for failures. 2019-10-07 11:31:19 -07:00
Bhaskar Brahma b09c9b7ba7 Removed code to kill the process that has open file handled to custom-script-extension 2019-10-07 11:25:25 -07:00
Bhaskar Brahma 949818e8c4 Added wait and retries before attempting to kill process 2019-10-04 18:23:16 -07:00
Bhaskar Brahma ffac03420d fixed exit behavior 2019-10-04 13:56:51 -07:00
Bhaskar Brahma 85d1c6367c Fix for text file busy 2019-10-04 13:03:30 -07:00
Bhaskar Brahma 2b26ef7bfb Revert "Changed the version from 2.1.0 to 2.0.8"
This reverts commit 84b0c98fd9.
2019-08-13 14:00:47 -07:00
Bhaskar Brahma 84b0c98fd9 Changed the version from 2.1.0 to 2.0.8 2019-08-07 12:48:17 -07:00
Bhaskar Brahma b574909d10 Updated version to 2.1.0 2019-07-26 14:34:08 -07:00
Bhaskar Brahma c61b0eff8f Bumped version and updated makefile 2019-07-26 14:34:08 -07:00
David Albertson 8892687778 Bumping extension to 2.0.7 2018-12-10 15:58:24 -08:00
Jean-Baptiste Giraudeau 8b64522ae3
Find bash from env
So that custom-script-shim works on distros where bash is not in /bin
2017-11-22 09:22:21 +01:00
Christopher Boumenot 8486c6d4f0 use mrseq 2017-11-10 13:49:30 -08:00
Christopher Boumenot f48b4a6995 bump version to 2.0.5 2017-11-09 01:11:39 -08:00
Christopher Boumenot abad04b4fe Auto create dataDir on preEnable
If the extension is upgraded the install will be skipped, but the
uninstall will be called.  Uninstall will delete the dataDir, and
subsequent calls will fail.  Ensure this directory always exists.
2017-11-08 21:33:18 -08:00
Christopher Boumenot 95bbf9b65d support script command
* report stdout/stderr on failure
 * support fileUris in protected settings
 * telemetry
 * allow user to turn of dos2unix conversion
2017-10-13 14:22:16 -07:00
Christopher Boumenot f21ef819c1 Bump version to 2.0.3 2017-03-30 17:00:30 -07:00
Ahmet Alp Balkan 494f22ec0d
Update version to 2.0.2
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-10-12 12:06:48 -07:00
Ahmet Alp Balkan 6230f858c6
Do not overwrite .status file in new enables
Updating custom-script-shim to not to overwrite a placeholder
"transitioning" `.status` file if it already exists.

Updating handler code writing "transitioning" `.status` file to
not to write the `.status` file until the sequence number check
is completed in the "enable" cmd.

Added integration tests to validate this case.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-10-11 11:04:01 -07:00
Ahmet Alp Balkan 4822c78f64
cmd/enable: migrate old data dir on enable
Adding code to migrate /var/lib/azure/custom-script to
/var/lib/waagent/custom-script so that it gets cleaned up on
'waagent -deprovision' path. Shelling out to `mv -f` for recursive
file copying.

Also bumped version to v2.0.1.
2016-08-31 11:16:52 -07:00
Ahmet Alp Balkan 19c66ba990
Update handler name to CustomScript (-forLinux) 2016-08-08 15:24:25 -07:00
Ahmet Alp Balkan d1cca65a87 Move manifests into misc/ 2016-08-01 13:52:43 -07:00
Ahmet Alp Balkan 07ce77953d
Shim script for extension handler
Wrote a bash shim that forwards logs of the handler process
reliably and daemonizes the 'enable' command via `nohup .. &`.

Adopted from https://github.com/Azure/azure-docker-extension/blob/master/scripts/run-in-background.sh
and extended to be used for all commands (not just 'enable')

Fixes #35.
2016-07-26 14:31:40 -07:00