Add SeedDMS attribute customization, closes #270
This commit is contained in:
parent
20f8172e44
commit
f22d6ed689
@ -17,6 +17,7 @@ rc-update -u
|
|||||||
export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64)
|
export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64)
|
||||||
envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
|
envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
|
||||||
docker run --rm seeddms cat /srv/seeddms/create_tables-postgres.sql | docker exec -i -e PGPASSWORD=${SEEDDMS_PWD} postgres psql seeddms seeddms
|
docker run --rm seeddms cat /srv/seeddms/create_tables-postgres.sql | docker exec -i -e PGPASSWORD=${SEEDDMS_PWD} postgres psql seeddms seeddms
|
||||||
|
cat ${SOURCE_DIR}/custom.sql | docker exec -i -e PGPASSWORD=${SEEDDMS_PWD} postgres psql seeddms seeddms
|
||||||
|
|
||||||
# Copy existing files into persistent storage
|
# Copy existing files into persistent storage
|
||||||
mkdir -p /srv/seeddms/conf /srv/seeddms/data
|
mkdir -p /srv/seeddms/conf /srv/seeddms/data
|
||||||
|
13
seeddms/custom.sql
Normal file
13
seeddms/custom.sql
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
INSERT INTO "tblAttributeDefinitions" (name, objtype, type) VALUES
|
||||||
|
('Licence', 2, 3),
|
||||||
|
('Autor', 2, 3),
|
||||||
|
('Source URL', 2, 5),
|
||||||
|
('Email', 2, 6),
|
||||||
|
('Organization', 2, 3),
|
||||||
|
('ISBN', 2, 3),
|
||||||
|
('Published', 2, 7),
|
||||||
|
('Language', 0, 3),
|
||||||
|
('Phone', 2, 1),
|
||||||
|
('Region', 0, 3),
|
||||||
|
('Org. abbreviation', 2, 3),
|
||||||
|
('ISSN', 2, 3);
|
Loading…
Reference in New Issue
Block a user