Skip to content

Commit

Permalink
[fix] Allow auto-install script to install from forked repository
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Dec 16, 2024
1 parent b91e4f2 commit b77d57f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ jobs:
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
GIT_BRANCH="${{ github.head_ref }}"
GIT_PATH="https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git"
else
GIT_BRANCH="${{ github.ref_name }}"
fi
echo "GIT_PATH=$GIT_PATH" >> $GITHUB_ENV
echo "GIT_BRANCH=$GIT_BRANCH" >> $GITHUB_ENV
- name: Use auto-install script to upgrade containers to latest version
Expand Down
2 changes: 1 addition & 1 deletion deploy/auto-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
export DEBIAN_FRONTEND=noninteractive
export INSTALL_PATH=/opt/openwisp/docker-openwisp
export LOG_FILE=/opt/openwisp/autoinstall.log
export GIT_PATH=https://github.com/openwisp/docker-openwisp.git
export ENV_USER=/opt/openwisp/config.env
export ENV_BACKUP=/opt/openwisp/backup.env
export GIT_PATH=${GIT_PATH:-https://github.com/openwisp/docker-openwisp.git}

# Terminal colors
export RED='\033[1;31m'
Expand Down

0 comments on commit b77d57f

Please sign in to comment.