diff options
Diffstat (limited to 'modules.d/slx-extra-script/hooks/s3-extra-script.sh')
-rwxr-xr-x | modules.d/slx-extra-script/hooks/s3-extra-script.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules.d/slx-extra-script/hooks/s3-extra-script.sh b/modules.d/slx-extra-script/hooks/s3-extra-script.sh new file mode 100755 index 00000000..3a8d4ff4 --- /dev/null +++ b/modules.d/slx-extra-script/hooks/s3-extra-script.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# -*- coding: utf-8 -*- +# region imports +. /etc/openslx +# endregion + +[ -z "$SLX_EXTRA_SCRIPT_URL" ] && exit 0 +slx-tools download_retry --slx-time 20 -sS "$SLX_EXTRA_SCRIPT_URL" > /tmp/extra-init || exit 1 +chmod +x /tmp/extra-init +exec /tmp/extra-init |