Move Sigmah application files to /srv
This commit is contained in:
parent
8c4698fdff
commit
cda2d83779
@ -7,7 +7,7 @@ apt-get -y --no-install-recommends install python-bcrypt
|
|||||||
|
|
||||||
# Download Sigmah
|
# Download Sigmah
|
||||||
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-2.0.2.war -O /tmp/sigmah.war
|
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-2.0.2.war -O /tmp/sigmah.war
|
||||||
unzip /tmp/sigmah.war -d /var/lib/tomcat8/webapps/sigmah
|
unzip /tmp/sigmah.war -d /srv/sigmah
|
||||||
rm -f /tmp/sigmah.war
|
rm -f /tmp/sigmah.war
|
||||||
|
|
||||||
# Create database
|
# Create database
|
||||||
@ -19,9 +19,10 @@ rm -f /tmp/sigmah-createdb.sql
|
|||||||
# Configure Sigmah
|
# Configure Sigmah
|
||||||
mkdir -p /srv/sigmah/{files,archives}
|
mkdir -p /srv/sigmah/{files,archives}
|
||||||
chown -R tomcat8:tomcat8 /srv/sigmah
|
chown -R tomcat8:tomcat8 /srv/sigmah
|
||||||
envsubst <${SOURCE_DIR}/var/lib/tomcat8/webapps/sigmah/WEB-INF/classes/META-INF/persistence.xml >/var/lib/tomcat8/webapps/sigmah/WEB-INF/classes/META-INF/persistence.xml
|
ln -s /srv/sigmah /var/lib/tomcat8/webapps/sigmah
|
||||||
cp ${SOURCE_DIR}/var/lib/tomcat8/webapps/sigmah/WEB-INF/classes/sigmah.properties /var/lib/tomcat8/webapps/sigmah/WEB-INF/classes/sigmah.properties
|
envsubst <${SOURCE_DIR}/srv/sigmah/WEB-INF/classes/META-INF/persistence.xml >/srv/sigmah/WEB-INF/classes/META-INF/persistence.xml
|
||||||
cp /var/lib/tomcat8/webapps/sigmah/sigmah/images/header/org-default-logo.png /srv/sigmah/files/logo.png
|
cp ${SOURCE_DIR}/srv/sigmah/WEB-INF/classes/sigmah.properties /srv/sigmah/WEB-INF/classes/sigmah.properties
|
||||||
|
cp /srv/sigmah/sigmah/images/header/org-default-logo.png /srv/sigmah/files/logo.png
|
||||||
|
|
||||||
# Populate database
|
# Populate database
|
||||||
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-MinimumDataKit-2.0.postgresql.sql -O /tmp/sigmah-MinimumDataKit.sql
|
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-MinimumDataKit-2.0.postgresql.sql -O /tmp/sigmah-MinimumDataKit.sql
|
||||||
|
Loading…
Reference in New Issue
Block a user