Skip to content

Commit

Permalink
Shallow git clone to improve performance, reduce disk use
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Jaeckel committed Sep 13, 2021
1 parent c8b546d commit 78d3e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timelapsepi/src/modules/timelapsepi/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ unpack /filesystem/home/pi /home/"${BASE_USER}" "${BASE_USER}"
unpack /filesystem/home/root /root root
unpack /filesystem/boot /boot

git clone https://github.com/ingojaeckel/go-raspberry-pi-timelapse.git /home/pi/go-raspberry-pi-timelapse
git clone --depth 1 https://github.com/ingojaeckel/go-raspberry-pi-timelapse.git /home/pi/go-raspberry-pi-timelapse

# Unpack root at the end, so files are modified before
unpack /filesystem/root /

sudo chmod 644 /lib/systemd/system/timelapse.service
sudo chmod 644 /etc/systemd/system/timelapse.service
sudo systemctl enable timelapse.service

0 comments on commit 78d3e4f

Please sign in to comment.