
The migration of the docker container to a rootless one requires the default library to move. This change strips the library path from the path to the ROM and replaces it with an SQL view that concatenates the library path and ROM path.
21 lines
770 B
Bash
21 lines
770 B
Bash
#!/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/.aspnet
|
|
chown -R ${PUID} /App /home/gaseous/.aspnet
|
|
chgrp -R ${PGID} /App /home/gaseous/.aspnet
|
|
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 |