forked from GeoNode/geonode
-
Notifications
You must be signed in to change notification settings - Fork 12
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 #1 from mweisman/deb
Debian packaging updates for Geonode 2.0
- Loading branch information
Showing
7 changed files
with
57 additions
and
7 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,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
DL_ROOT=/var/www/geoserver | ||
GIT_REV=$(git log -1 --pretty=format:%h) | ||
|
||
debuild | ||
|
||
if [ -d $DL_ROOT/$GIT_REV ]; then | ||
rm -rf $DL_ROOT/$GIT_REV | ||
fi | ||
|
||
mkdir $DL_ROOT/$GIT_REV | ||
cp ../*.deb $DL_ROOT/$GIT_REV/. | ||
cp target/geoserver.war $DL_ROOT/$GIT_REV/. | ||
cp target/geonode-geoserver-ext-*-geoserver-plugin.zip $DL_ROOT/$GIT_REV/. | ||
|
||
# Remove all but last 4 builds to stop disk from filling up | ||
(ls -t|tail -n 3)|sort|uniq -u | xargs rm -rf | ||
|
||
rm -rf $DL_ROOT/latest | ||
ln -sf $DL_ROOT/$GIT_REV $DL_ROOT/latest |
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,4 @@ | ||
#!/bin/bash | ||
|
||
# start tomcat after installing geoserver | ||
service tomcat6 restart |
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,3 @@ | ||
<settings> | ||
<localRepository>debian/.mvn/</localRepository> | ||
</settings> |
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