Skip to content

Commit 39b1797

Browse files
committed
Apparently @mindspillage occasionally puts *new* licenses on the server. So we should update occasionally.
1 parent bb2911e commit 39b1797

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

88x31.png

5.33 KB
Loading

88x31.png.1

5.33 KB
Binary file not shown.

update.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ echo "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAALOCAQAAAD7QL
1212

1313
cd ~/host/
1414

15-
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do git checkout $(basename "$branch"); mkdir -p /srv/clones/$(basename "$branch"); git archive $(basename "$branch") | tar -xC /srv/clones/$(basename "$branch"); cp ~/default /etc/apache2/sites-enabled/$(basename "$branch").conf; perl -p -i -e "s/MAGICALPONY/$(basename "$branch")/g" /etc/apache2/sites-enabled/$(basename "$branch").conf; done
15+
git pull
16+
17+
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do git checkout $(basename "$branch"); git pull; mkdir -p /srv/clones/$(basename "$branch"); git archive $(basename "$branch") | tar -xC /srv/clones/$(basename "$branch"); cp ~/default /etc/apache2/sites-enabled/$(basename "$branch").conf; perl -p -i -e "s/MAGICALPONY/$(basename "$branch")/g" /etc/apache2/sites-enabled/$(basename "$branch").conf; done
1618

1719
echo "<h1>And we're done!</h1>" >> /var/www/index.html
1820

0 commit comments

Comments
 (0)