All images now support rootless (#418)
This commit is contained in:
18
build/embeddeddb/entrypoint.sh
Normal file
18
build/embeddeddb/entrypoint.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# create the user
|
||||
echo "Creating user gaseous with UID ${PUID} and GID ${PGID}"
|
||||
groupadd -g ${PGID} gaseous
|
||||
useradd -u ${PUID} -g ${PGID} -m gaseous -d /home/gaseous -G sudo
|
||||
usermod -p "*" gaseous
|
||||
mkdir -p /home/gaseous/.gaseous-server
|
||||
chown -R ${PUID} /App /home/gaseous/.gaseous-server
|
||||
chgrp -R ${PGID} /App /home/gaseous/.gaseous-server
|
||||
|
||||
# Set MariaDB permissions
|
||||
mkdir -p /var/lib/mysql /var/log/mariadb /run/mysqld
|
||||
chown -R ${PUID} /var/lib/mysql /var/log/mariadb /run/mysqld
|
||||
chgrp -R ${PGID} /var/lib/mysql /var/log/mariadb /run/mysqld
|
||||
|
||||
# Start supervisord and services
|
||||
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
Reference in New Issue
Block a user