-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from jamesoncollins/devel
Devel
- Loading branch information
Showing
5 changed files
with
60 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "signalbot"] | ||
path = signalbot_local | ||
url = https://github.com/jamesoncollins/signalbot.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Ensure the GIT_REPO_PATH directory exists | ||
mkdir -p ${GIT_REPO_PATH} | ||
cd ${GIT_REPO_PATH} | ||
|
||
# Initialize the repository and configure the remote and branch | ||
( (git init; | ||
git remote add origin ${GIT_REPO_URL}; | ||
git fetch; | ||
git checkout -t origin/${GIT_REPO_BRANCH} -f) || true ) | ||
|
||
# Configure the repository as a safe directory for Git | ||
cd ${GIT_REPO_PATH} | ||
git config --global --add safe.directory ${GIT_REPO_PATH} | ||
|
||
# Fetch the latest changes and reset to match the remote branch | ||
git fetch origin | ||
git reset --hard origin/${GIT_REPO_BRANCH} | ||
|
||
# Initialize and update Git submodules | ||
git submodule update --init --recursive | ||
|
||
# Install Python dependencies | ||
pip install -r requirements.txt | ||
|
||
# Install system packages from pkglist | ||
apt -y install $(cat pkglist) | ||
|
||
# Run the main script | ||
${GIT_REPO_PATH}/run.sh |
Submodule signalbot_local
added at
57d571