Skip to content

Commit

Permalink
fixed file system permissions
Browse files Browse the repository at this point in the history
jonashoechst committed May 14, 2021
1 parent 102d95b commit 9eb6040
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 13 additions & 2 deletions BatRack.Pifile
Original file line number Diff line number Diff line change
@@ -11,6 +11,9 @@ INSTALL var /var
# Fix permissions for pi user
RUN chown -R pi:pi /home/pi/

# Mount boot writable for users
RUN sed -i 's/\(boot.*vfat.*defaults\)/\1,user,umask=000/g' /etc/fstab

#################################################
### basic configuration

@@ -69,6 +72,9 @@ RUN systemctl enable hostname-config.service
# Enabling wait for time-sync.target (depending services will not start before the clock is synced)
RUN systemctl enable systemd-time-wait-sync.service

# Reboot on kernel panic
RUN bash -c "echo kernel.panic=10 | tee -a /etc/sysctl.conf"

#################################################
### network configuration

@@ -160,7 +166,12 @@ title = RadioTracking
unit = radiotracking
EOF

### BatRack specific
#################################################
### BatRack configuration

# update sources für RPI_Cam_Web installer
RUN apt-get update

# Enable camera interaction
RUN raspi-config nonint do_camera 0

@@ -205,7 +216,7 @@ EOF
RUN apt-get install -y python3-numpy python3-pyaudio
RUN python3 -m pip install -e /home/pi/BatRack

# Enable BatRecorder
# Enable BatRack
RUN systemctl enable BatRack.service
RUN tee -a /etc/sysdweb.conf <<EOF

2 changes: 2 additions & 0 deletions etc/systemd/system/BatRack.service
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@ After=network.target raspimjpeg.service raspiwebcam.service
ExecStart=python3 -m batrack /boot/BatRack.conf
Restart=always
RestartSec=5
User=pi
Group=pi

[Install]
WantedBy=multi-user.target

0 comments on commit 9eb6040

Please sign in to comment.