Test
This commit is contained in:
@@ -0,0 +1 @@
|
||||
3
|
||||
27
root/etc/s6-overlay/s6-rc.d/svc-foldingathome/run
Executable file
27
root/etc/s6-overlay/s6-rc.d/svc-foldingathome/run
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ -n "${ACCOUNT_TOKEN}" ]] && [[ -n "${MACHINE_NAME}" ]]; then
|
||||
TOKEN_AND_NAME="--account-token ${ACCOUNT_TOKEN} --machine-name ${MACHINE_NAME}"
|
||||
else
|
||||
echo '
|
||||
***************************************************************************
|
||||
***************************************************************************
|
||||
**** ****
|
||||
**** ****
|
||||
**** On first run, both the ACCOUNT_TOKEN and the MACHINE_NAME ****
|
||||
**** env vars are required. Please set them and recreate the container ****
|
||||
**** unless the instance was previously added to online account. ****
|
||||
**** ****
|
||||
**** ****
|
||||
***************************************************************************
|
||||
***************************************************************************
|
||||
'
|
||||
fi
|
||||
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 7396" \
|
||||
cd /config s6-setuidgid abc /app/fah-client \
|
||||
--http-addresses 0.0.0.0:7396 --allow 0/0 ${TOKEN_AND_NAME} \
|
||||
${CLI_ARGS}
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-foldingathome/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-foldingathome/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
Reference in New Issue
Block a user