diff --git a/lxc-apps/seeddms/install.sh b/lxc-apps/seeddms/install.sh index 2b7dc7b..646b920 100755 --- a/lxc-apps/seeddms/install.sh +++ b/lxc-apps/seeddms/install.sh @@ -11,6 +11,10 @@ lxc-execute -n seeddms-postgres -- initdb -D /var/lib/postgresql cp postgres_data/postgresql.conf /srv/seeddms/postgres_data/postgresql.conf cp postgres_data/pg_hba.conf /srv/seeddms/postgres_data/pg_hba.conf +# Copy existing files into persistent storage +lxchelper extract seeddms /srv/seeddms/conf /srv/seeddms/seeddms_conf +lxchelper extract seeddms /srv/seeddms/data /srv/seeddms/seeddms_data + # Populate database export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') service lxc-seeddms-postgres start @@ -18,10 +22,6 @@ envsubst /srv/seeddms/seeddms_conf/settings.xml export SEEDDMS_ADMIN_USER=admin