Compare commits
No commits in common. "9b2ffa8b2c759fd715e7aabb78fa782626d13a1d" and "18ddaa1da4c03789922369ad034afd2d89dce46e" have entirely different histories.
9b2ffa8b2c
...
18ddaa1da4
@ -19,14 +19,10 @@ echo "Migrating DB..."
|
||||
./mapg db:migrate
|
||||
|
||||
echo "Set runner user based on owner of .env..."
|
||||
if ! getent group mapg; then
|
||||
USER_GID=$(stat -c "%g" .env)
|
||||
groupadd --gid $USER_GID mapg
|
||||
fi
|
||||
if ! id -u mapg; then
|
||||
USER_UID=$(stat -c "%u" .env)
|
||||
useradd --uid $USER_UID --gid $USER_GID mapg
|
||||
fi
|
||||
USER_UID=$(stat -c "%u" .env)
|
||||
USER_GID=$(stat -c "%g" .env)
|
||||
groupadd --gid $USER_GID mapg
|
||||
useradd --uid $USER_UID --gid $USER_GID mapg
|
||||
sed -i -e "s/^user = .*$/user = mapg/g" -e "s/^group = .*$/group = mapg/g" /etc/php/8.1/fpm/pool.d/www.conf
|
||||
|
||||
set +e
|
||||
|
@ -9,14 +9,10 @@ echo "Installing crontab..."
|
||||
/usr/bin/crontab docker/scripts/cron
|
||||
|
||||
echo "Set runner user based on owner of .env..."
|
||||
if ! getent group mapg; then
|
||||
USER_GID=$(stat -c "%g" .env)
|
||||
groupadd --gid $USER_GID mapg
|
||||
fi
|
||||
if ! id -u mapg; then
|
||||
USER_UID=$(stat -c "%u" .env)
|
||||
useradd --uid $USER_UID --gid $USER_GID mapg
|
||||
fi
|
||||
USER_UID=$(stat -c "%u" .env)
|
||||
USER_GID=$(stat -c "%g" .env)
|
||||
groupadd --gid $USER_GID mapg
|
||||
useradd --uid $USER_UID --gid $USER_GID mapg
|
||||
chown mapg:mapg cache
|
||||
sed -i -e "s/^user = .*$/user = mapg/g" -e "s/^group = .*$/group = mapg/g" /etc/php/8.1/fpm/pool.d/www.conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user