mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-19 18:14:24 +00:00
chore(gitea): run on lxc on turris omnia
This commit is contained in:
@@ -6,6 +6,17 @@
|
||||
## TL;DR
|
||||
|
||||
```sh
|
||||
# Set the correct hostname.
|
||||
echo 'gitea' > '/etc/hostname'
|
||||
hostname -F '/etc/hostname'
|
||||
|
||||
# Configure DHCP.
|
||||
cat <<EOF > '/etc/network/interfaces'
|
||||
auto eth0
|
||||
iface eth0 inet dhcp
|
||||
iface eth0 inet6 dhcp
|
||||
EOF
|
||||
|
||||
# Create users.
|
||||
adduser 'somebody'
|
||||
adduser -DHS -G 'docker' 'docker'
|
||||
@@ -15,6 +26,10 @@ addgroup 'new-group'
|
||||
|
||||
# Add users to groups.
|
||||
addgroup 'nobody' 'docker'
|
||||
|
||||
# Start services.
|
||||
rc-update add 'gitea'
|
||||
rc-service 'gitea' start
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
Reference in New Issue
Block a user