Squash multiple mkdir commands
This commit is contained in:
parent
edb2b6cd8c
commit
a6629375f5
@ -6,8 +6,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/ckan-datapusher
|
|||||||
docker build -t ckan-datapusher ${SOURCE_DIR}
|
docker build -t ckan-datapusher ${SOURCE_DIR}
|
||||||
|
|
||||||
# Configure CKAN DataPusher
|
# Configure CKAN DataPusher
|
||||||
mkdir -p /srv/ckan-datapusher/conf
|
mkdir -p /srv/ckan-datapusher/conf /srv/ckan-datapusher/data
|
||||||
mkdir /srv/ckan-datapusher/data
|
|
||||||
cp ${SOURCE_DIR}/srv/ckan-datapusher/conf/datapusher.wsgi /srv/ckan-datapusher/conf/datapusher.wsgi
|
cp ${SOURCE_DIR}/srv/ckan-datapusher/conf/datapusher.wsgi /srv/ckan-datapusher/conf/datapusher.wsgi
|
||||||
cp ${SOURCE_DIR}/srv/ckan-datapusher/conf/datapusher_settings.py /srv/ckan-datapusher/conf/datapusher_settings.py
|
cp ${SOURCE_DIR}/srv/ckan-datapusher/conf/datapusher_settings.py /srv/ckan-datapusher/conf/datapusher_settings.py
|
||||||
chown -R 8004:8004 /srv/ckan-datapusher/data
|
chown -R 8004:8004 /srv/ckan-datapusher/data
|
||||||
|
3
ckan.sh
3
ckan.sh
@ -20,8 +20,7 @@ service solr restart
|
|||||||
# Configure CKAN
|
# Configure CKAN
|
||||||
export CKAN_SECRET=$(head -c 18 /dev/urandom | base64)
|
export CKAN_SECRET=$(head -c 18 /dev/urandom | base64)
|
||||||
export CKAN_UUID=$(cat /proc/sys/kernel/random/uuid)
|
export CKAN_UUID=$(cat /proc/sys/kernel/random/uuid)
|
||||||
mkdir -p /srv/ckan/conf
|
mkdir -p /srv/ckan/conf /srv/ckan/data
|
||||||
mkdir /srv/ckan/data
|
|
||||||
envsubst <${SOURCE_DIR}/srv/ckan/conf/ckan.ini >/srv/ckan/conf/ckan.ini
|
envsubst <${SOURCE_DIR}/srv/ckan/conf/ckan.ini >/srv/ckan/conf/ckan.ini
|
||||||
cp ${SOURCE_DIR}/srv/ckan/conf/who.ini /srv/ckan/conf/who.ini
|
cp ${SOURCE_DIR}/srv/ckan/conf/who.ini /srv/ckan/conf/who.ini
|
||||||
chown -R 8003:8003 /srv/ckan/data
|
chown -R 8003:8003 /srv/ckan/data
|
||||||
|
@ -11,8 +11,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql
|
|||||||
docker run --rm kanboard cat /srv/kanboard/app/Schema/Sql/postgres.sql | docker exec -i -e PGPASSWORD=${KANBOARD_PWD} postgres psql kanboard kanboard
|
docker run --rm kanboard cat /srv/kanboard/app/Schema/Sql/postgres.sql | docker exec -i -e PGPASSWORD=${KANBOARD_PWD} postgres psql kanboard kanboard
|
||||||
|
|
||||||
# Configure Kanboard
|
# Configure Kanboard
|
||||||
mkdir -p /srv/kanboard/conf
|
mkdir -p /srv/kanboard/conf /srv/kanboard/data
|
||||||
mkdir /srv/kanboard/data
|
|
||||||
envsubst <${SOURCE_DIR}/srv/kanboard/conf/config.php >/srv/kanboard/conf/config.php
|
envsubst <${SOURCE_DIR}/srv/kanboard/conf/config.php >/srv/kanboard/conf/config.php
|
||||||
export KANBOARD_ADMIN_USER=admin
|
export KANBOARD_ADMIN_USER=admin
|
||||||
export KANBOARD_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
export KANBOARD_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
||||||
|
@ -8,8 +8,7 @@ docker build -t openmapkit ${SOURCE_DIR}
|
|||||||
# Configure OpenMapKit
|
# Configure OpenMapKit
|
||||||
export OMK_ADMIN_USER="admin"
|
export OMK_ADMIN_USER="admin"
|
||||||
export OMK_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
export OMK_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
||||||
mkdir -p /srv/openmapkit/data/deployments
|
mkdir -p /srv/openmapkit/data/deployments /srv/openmapkit/data/submissions
|
||||||
mkdir /srv/openmapkit/data/submissions
|
|
||||||
envsubst <${SOURCE_DIR}/srv/openmapkit/settings.js >/srv/openmapkit/settings.js
|
envsubst <${SOURCE_DIR}/srv/openmapkit/settings.js >/srv/openmapkit/settings.js
|
||||||
chown -R 8007:8007 /srv/openmapkit/data
|
chown -R 8007:8007 /srv/openmapkit/data
|
||||||
|
|
||||||
|
@ -11,8 +11,7 @@ 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
|
||||||
|
|
||||||
# Copy existing files into persistent storage
|
# Copy existing files into persistent storage
|
||||||
mkdir -p /srv/seeddms/conf
|
mkdir -p /srv/seeddms/conf /srv/seeddms/data
|
||||||
mkdir /srv/seeddms/data
|
|
||||||
docker run --rm -v /srv/seeddms/conf:/mnt/conf seeddms cp -rp /srv/seeddms/www/conf/. /mnt/conf
|
docker run --rm -v /srv/seeddms/conf:/mnt/conf seeddms cp -rp /srv/seeddms/www/conf/. /mnt/conf
|
||||||
docker run --rm -v /srv/seeddms/data:/mnt/conf seeddms cp -rp /srv/seeddms/data/. /mnt/conf
|
docker run --rm -v /srv/seeddms/data:/mnt/conf seeddms cp -rp /srv/seeddms/data/. /mnt/conf
|
||||||
chown -R 8010:8010 /srv/seeddms/data
|
chown -R 8010:8010 /srv/seeddms/data
|
||||||
|
Loading…
Reference in New Issue
Block a user