Compare commits

..

No commits in common. "ec4d3806ce539f7f3111f19a1bc9aa1e8e2406f8" and "6341072b0b8c19ad2f559a138901735e8fd583ce" have entirely different histories.

2 changed files with 8 additions and 16 deletions

View File

@ -16,14 +16,10 @@ echo "Migrating DB..."
./rvr db:migrate ./rvr db:migrate
echo "Set runner user based on owner of .env..." echo "Set runner user based on owner of .env..."
if ! getent group rvr; then USER_UID=$(stat -c "%u" .env)
USER_GID=$(stat -c "%g" .env) USER_GID=$(stat -c "%g" .env)
groupadd --gid $USER_GID rvr groupadd --gid $USER_GID rvr
fi
if ! id -u rvr; then
USER_UID=$(stat -c "%u" .env)
useradd --uid $USER_UID --gid $USER_GID rvr useradd --uid $USER_UID --gid $USER_GID rvr
fi
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf
set +e set +e

View File

@ -9,14 +9,10 @@ echo "Installing crontab..."
/usr/bin/crontab docker/scripts/cron /usr/bin/crontab docker/scripts/cron
echo "Set runner user based on owner of .env..." echo "Set runner user based on owner of .env..."
if ! getent group rvr; then USER_UID=$(stat -c "%u" .env)
USER_GID=$(stat -c "%g" .env) USER_GID=$(stat -c "%g" .env)
groupadd --gid $USER_GID rvr groupadd --gid $USER_GID rvr
fi
if ! id -u rvr; then
USER_UID=$(stat -c "%u" .env)
useradd --uid $USER_UID --gid $USER_GID rvr useradd --uid $USER_UID --gid $USER_GID rvr
fi
chown -R rvr:rvr cache chown -R rvr:rvr cache
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf