Compare commits
2 Commits
6341072b0b
...
ec4d3806ce
Author | SHA1 | Date | |
---|---|---|---|
ec4d3806ce | |||
0c2334502d |
@ -16,10 +16,14 @@ echo "Migrating DB..."
|
||||
./rvr db:migrate
|
||||
|
||||
echo "Set runner user based on owner of .env..."
|
||||
USER_UID=$(stat -c "%u" .env)
|
||||
if ! getent group rvr; then
|
||||
USER_GID=$(stat -c "%g" .env)
|
||||
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
|
||||
fi
|
||||
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
|
||||
|
@ -9,10 +9,14 @@ echo "Installing crontab..."
|
||||
/usr/bin/crontab docker/scripts/cron
|
||||
|
||||
echo "Set runner user based on owner of .env..."
|
||||
USER_UID=$(stat -c "%u" .env)
|
||||
if ! getent group rvr; then
|
||||
USER_GID=$(stat -c "%g" .env)
|
||||
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
|
||||
fi
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user