Make Sigmah install script independent on internet
This commit is contained in:
parent
98e87aa772
commit
eb079b9699
@ -18,8 +18,8 @@ cp srv/sigmah/conf/sigmah.properties /srv/sigmah/conf/sigmah.properties
|
||||
cp /var/lib/lxc/sigmah/sigmah/srv/tomcat/webapps/sigmah/sigmah/images/header/org-default-logo.png /srv/sigmah/data/files/logo.png
|
||||
|
||||
# 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-newOrganizationLaunchScript-2.0.postgresql.sql -O /tmp/sigmah-newOrganizationLaunchScript.sql
|
||||
cp -f /var/lib/lxc/sigmah/sigmah/srv/sigmah-MinimumDataKit.sql /tmp/
|
||||
cp -f /var/lib/lxc/sigmah/sigmah/srv/sigmah-newOrganizationLaunchScript.sql /tmp/
|
||||
export SIGMAH_ADMIN_USER=Admin
|
||||
export SIGMAH_ADMIN_EMAIL=admin@example.com
|
||||
export SIGMAH_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
||||
|
@ -22,6 +22,10 @@ RUN EOF
|
||||
adduser -S -u 8011 -h /srv/tomcat -s /bin/false -g sigmah -G sigmah sigmah
|
||||
chown -R sigmah:sigmah /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
|
||||
|
||||
# Download database files
|
||||
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-MinimumDataKit-2.0.postgresql.sql -O /srv/sigmah-MinimumDataKit.sql
|
||||
wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-newOrganizationLaunchScript-2.0.postgresql.sql -O /srv/sigmah-newOrganizationLaunchScript.sql
|
||||
|
||||
# Cleanup
|
||||
rm /tmp/sigmah.war
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user