mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 10:42:37 +02:00
22 lines
No EOL
542 B
Text
Executable file
22 lines
No EOL
542 B
Text
Executable file
#!/sbin/openrc-run
|
|
name="Dangerzone init script"
|
|
start() {
|
|
# Setup Alpine
|
|
/sbin/setup-alpine -f /etc/answers.txt -e -q
|
|
rm /etc/answers.txt
|
|
|
|
# Create user
|
|
/usr/sbin/adduser -D -u 1001 user
|
|
|
|
# Move containers into home dir
|
|
mkdir -p /home/user/.local/share
|
|
mv /etc/container-data /home/user/.local/share/containers
|
|
chown -R user:user /home/user/.local
|
|
|
|
# Allow podman containers to run
|
|
echo "user:100000:65536" >> /etc/subuid
|
|
echo "user:100000:65536" >> /etc/subgid
|
|
|
|
# SSH reverse tunnel to host
|
|
/etc/ssh-to-host.py &
|
|
} |