mirror of
https://github.com/getsentry/self-hosted.git
synced 2026-02-06 10:57:17 +00:00
fix: ensuring vroom permission should be skipped on errors-only (#3911)
* fix: ensuring vroom permission should be skipped on errors-only * feat: enable swap on all runners * feat: don't exit on install script
This commit is contained in:
parent
67c32e883d
commit
de2139890d
@ -144,8 +144,8 @@ runs:
|
||||
|
||||
- name: Setup swapfile
|
||||
shell: bash
|
||||
if: runner.arch == 'X64' || runner.arch == 'X86'
|
||||
run: |
|
||||
sudo swapoff -a
|
||||
sudo fallocate -l 16G /swapfile
|
||||
sudo chmod 600 /swapfile
|
||||
sudo mkswap /swapfile
|
||||
|
||||
@ -2,13 +2,16 @@
|
||||
|
||||
# TODO: Remove this after the next hard-stop
|
||||
|
||||
echo "${_group}Ensuring correct permissions on profiles directory ..."
|
||||
# Should only run when `$COMPOSE_PROFILES` is set to `feature-complete`
|
||||
if [[ "$COMPOSE_PROFILES" == "feature-complete" ]]; then
|
||||
echo "${_group}Ensuring correct permissions on profiles directory ..."
|
||||
|
||||
# Check if the parent directory of /var/vroom/sentry-profiles is already owned by vroom:vroom
|
||||
if [ "$($dcr --no-deps --entrypoint /bin/bash --user root vroom -c "stat -c '%U:%G' /var/vroom/sentry-profiles" 2>/dev/null)" = "vroom:vroom" ]; then
|
||||
echo "Ownership of /var/vroom/sentry-profiles is already set to vroom:vroom. Skipping chown."
|
||||
else
|
||||
$dcr --no-deps --entrypoint /bin/bash --user root vroom -c 'chown -R vroom:vroom /var/vroom/sentry-profiles && chmod -R o+rwx /var/vroom/sentry-profiles'
|
||||
# Check if the parent directory of /var/vroom/sentry-profiles is already owned by vroom:vroom
|
||||
if [ "$($dcr --no-deps --entrypoint /bin/bash --user root vroom -c "stat -c '%U:%G' /var/vroom/sentry-profiles" 2>/dev/null)" = "vroom:vroom" ]; then
|
||||
echo "Ownership of /var/vroom/sentry-profiles is already set to vroom:vroom. Skipping chown."
|
||||
else
|
||||
$dcr --no-deps --entrypoint /bin/bash --user root vroom -c 'chown -R vroom:vroom /var/vroom/sentry-profiles && chmod -R o+rwx /var/vroom/sentry-profiles'
|
||||
fi
|
||||
|
||||
echo "${_endgroup}"
|
||||
fi
|
||||
|
||||
echo "${_endgroup}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user