-
-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): pin ubuntu docker tag to 80dd3c3 (#31172)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | ubuntu | final | pinDigest | -> `80dd3c3` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44Ni4xIiwidXBkYXRlZEluVmVyIjoiMzkuODYuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiXX0=--> --------- Signed-off-by: Alfred Göppel <[email protected]> Co-authored-by: Alfred Göppel <[email protected]>
- Loading branch information
1 parent
69ce650
commit c24ebf6
Showing
5 changed files
with
111 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
min_seconds="${1:-1}" | ||
max_seconds="${2:-3600}" | ||
seconds="$(shuf -i "${min_seconds}"-"${max_seconds}" -n 1)" | ||
function logz { | ||
msg="${1}" | ||
level="${2:-info}" | ||
printf "\e[1;32m%-6s\e[m\n" "timestamp=\"$(date +"%Y-%m-%dT%H:%M:%S%z")\" level=\"${level}\" msg=\"${msg}\"" | ||
} | ||
function datez { | ||
secs="${1}" | ||
printf "%dh%dm%ds" $((secs/3600)) $((secs%3600/60)) $((secs%60)) | ||
} | ||
printf "\e[1;32m%-6s\e[m\n" "$(logz "min seconds set to ${min_seconds}" "debug")" | ||
printf "\e[1;32m%-6s\e[m\n" "$(logz "max seconds set to ${max_seconds}" "debug")" | ||
printf "\e[1;32m%-6s\e[m\n" "$(logz "sleeping for $(datez "${seconds}")" "info")" | ||
for ((i=seconds;i>0;i--)); do | ||
printf "\e[1;32m%-6s\e[m\n" "$(logz "sleeping for $(datez "${i}")" "info")" | ||
sleep 1 | ||
done | ||
printf "\e[1;32m%-6s\e[m\n" "$(logz "done" "debug")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
#shellcheck disable=SC1091 | ||
source "/shim/umask.sh" | ||
source "/shim/vpn.sh" | ||
echo "---Checking for optional user script---" | ||
if [ -f /custom/user.sh ]; then | ||
echo "---Found optional script, executing---" | ||
chmod +x /custom/user.sh | ||
/custom/user.sh | ||
else | ||
echo "---No optional user script found, continuing---" | ||
fi | ||
echo "---Checking for container script---" | ||
if [ -f /custom/start.sh ]; then | ||
echo "---Found container script, executing---" | ||
chmod +x /custom/start.sh | ||
/custom/start.sh | ||
else | ||
echo "---No container script found, continuing---" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
umask "${UMASK:-0002}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ "${WAIT_FOR_VPN:-"false"}" == "true" ]]; then | ||
echo "Waiting for VPN to be connected..." | ||
while ! grep -s -q "connected" /shared/vpnstatus; do | ||
echo "VPN not connected" | ||
sleep 2 | ||
done | ||
echo "VPN Connected, starting application..." | ||
fi |