Skip to content
Snippets Groups Projects
Commit 0c73d5ff authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

data-setup: move the existing data-deletion in `setup-full.sh`

Let's make the basic building brick more reusable.
parent 16556cfc
No related branches found
No related tags found
1 merge request!15basic data-setup
......@@ -20,8 +20,6 @@
desc="${data_env_directory}/data-env.poulpe"
rm -f "$desc"
env-desc set "$desc" poulpe-environment.environment-type data
env-desc set "$desc" poulpe-environment.format-version 0
env-desc set "$desc" poulpe-environment.setup-method manual
......
......@@ -3,6 +3,8 @@
# Simple script to fully setup a
#
# You still have to build the env by hand.
#
# /!\ This delete any existing data
set -euo pipefail
if [ $# -ne 3 ]; then
......@@ -18,6 +20,12 @@
data_env_directory=$2
repository_path=$3
desc="${data_env_directory}/data-env.poulpe"
if [ -e "$desc" ]; then
echo "DELETING EXISTING DATA"
rm -f "$desc"
fi
# XXX should probably automatically find script and run them. However there are
# few of them now so explicit listing seems simpler.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment