Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
1 deletion.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
#!/bin/bash | |||
|
|||
echo "Setting up system for development usage..." | |||
echo "" | |||
|
|||
if [ -d /usr/lib/hs/agent/.git ]; then | |||
echo "This system already has .git directories in /usr/lib/hs/." | |||
echo "E: Aborting to not overwrite your work." | |||
exit 1 | |||
fi | |||
|
|||
apt-get install -y build-essential git mr bundler rsync | |||
tmpdir="GITIFY-TMP" | |||
|
|||
cd /root | |||
rm -rf ${tmpdir} | |||
mkdir ${tmpdir} | |||
pushd ${tmpdir} | |||
for r in /usr/lib/hs/*; do | |||
repo=hs-$(basename $r) | |||
git clone git://github.com/hostingstack/${repo} | |||
mv ${repo}/.git $r/ | |||
done | |||
popd | |||
rm -rf ${tmpdir} | |||
|
|||
git clone git://github.com/hostingstack/hs-nginx | |||
|
|||
echo "" | |||
echo "Done." | |||
echo "" | |||
echo "nginx repository: /root/hs-nginx" | |||
echo "other repositories: /usr/lib/hs/*" | |||
echo "" | |||
echo "Please run these before committing:" | |||
echo "" | |||
echo ' git config --global user.name "Firstname Lastname"' | |||
echo ' git config --global user.email "your_email@youremail.com"' | |||
echo "" | |||
|
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