openenergymonitor / EmonScripts

Emoncms Stack Installation and Update scripts
16 stars 30 forks source link

Add git safe directory command to install script #170

Closed borpin closed 1 year ago

borpin commented 1 year ago

Required to allow the webserver to use git commands. ref https://community.openenergymonitor.org/t/ubuntu-22-04-lxc-install-issues-git/22189/1

Symptom is the components page no longer showing the branch in use.

This will be obvious on an up to date base system. Packages updated since Nov22 image created;

git-man/stable 1:2.30.2-1+deb11u1 all [upgradable from: 1:2.30.2-1]
git/stable 1:2.30.2-1+deb11u1 armhf [upgradable from: 1:2.30.2-1]

Command required

sudo git config --system --add safe.directory '*'
borpin commented 1 year ago

I have added it to the update script, but I am unclear of the impact on older systems, so have not enabled it.

borpin commented 1 year ago

Bump @TrystanLea as I think the git package is now in Raspbian.