diff options
| author | Cyril Brulebois <cyril@debamax.com> | 2016-04-22 10:19:37 +0200 |
|---|---|---|
| committer | Cyril Brulebois <cyril@debamax.com> | 2016-04-22 10:20:35 +0200 |
| commit | 2eb28d46b0d5c2ae5c7dd614db8e7800baeb0756 (patch) | |
| tree | 22f2ea4bcfcab2b653a51810f1d666c19c087936 | |
| parent | 27b70317f7c095443f48906b37f2cc6815764f9d (diff) | |
| download | Ishtar-2eb28d46b0d5c2ae5c7dd614db8e7800baeb0756.tar.bz2 Ishtar-2eb28d46b0d5c2ae5c7dd614db8e7800baeb0756.zip | |
Keep track of created instances in INSTANCES file.
This makes it easier to iterate on instances after installation. In
particular, the postinst script can easily run migration code on
upgrades.
Signed-off-by: Cyril Brulebois <cyril@debamax.com>
| -rwxr-xr-x | ishtar-prepare-instance | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar-prepare-instance b/ishtar-prepare-instance index 140c38a0e..0bd74d375 100755 --- a/ishtar-prepare-instance +++ b/ishtar-prepare-instance @@ -11,6 +11,7 @@ INSTANCE=${INSTANCE-iggdrasil} PROJECT=${PROJECT-Test} URL=${URL-localhost} DEST=/var/lib/python-django-ishtar +INSTANCES_FILE=$DEST/INSTANCES echo "*** Preparing ishtar (instance: $INSTANCE, project: $PROJECT) under $DEST ***" @@ -179,3 +180,6 @@ ln -sf "$NGINX_AVAILABLE_PATH/ishtar-$INSTANCE.conf" \ echo "*** uwsgi and nginx configured, restart them and you're done ***" printf "\n /etc/init.d/uwsgi restart\n /etc/init.d/nginx restart\n\n Enjoy ishtar!\n" + +# Register instance: +echo "$INSTANCE" >> $INSTANCES_FILE |
