diff --git a/sigmah/install.sh b/sigmah/install.sh index 4bf374e..9bb303f 100755 --- a/sigmah/install.sh +++ b/sigmah/install.sh @@ -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) diff --git a/sigmah/lxcfile b/sigmah/lxcfile index f081677..a55c824 100644 --- a/sigmah/lxcfile +++ b/sigmah/lxcfile @@ -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