Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git safe directory command to install script #170

Merged
merged 2 commits into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions install/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ if [ "$apt_get_upgrade_and_clean" = true ]; then
fi
fi

# Required to allow the webserver to use git commands. ref
# https://community.openenergymonitor.org/t/ubuntu-22-04-lxc-install-issues-git/22189/1
sudo git config --system --add safe.directory '*'

# Required for emonpiLCD, wifi, rfm69pi firmware (review)
if [ ! -d $openenergymonitor_dir/data ]; then mkdir $openenergymonitor_dir/data; fi

Expand Down
5 changes: 5 additions & 0 deletions update/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ fi
if [ "$type" == "all" ] || [ "$type" == "emonhub" ]; then
echo "Running apt-get update"
sudo apt-get update
# Required to allow the webserver to use git commands. ref
# https://community.openenergymonitor.org/t/ubuntu-22-04-lxc-install-issues-git/22189/1
# Not enabled on update yet

# sudo git config --system --add safe.directory '*'
fi

# -----------------------------------------------------------------
Expand Down