summarylogtreecommitdiffstats
path: root/etcd.install
diff options
context:
space:
mode:
authorAndrey Kojevnikov2015-09-15 17:03:58 +1000
committerAndrey Kojevnikov2015-09-15 17:03:58 +1000
commit42a0e8d9b240eb5cecc95b19e7c4bfc270d3b1fa (patch)
tree230bc159ed4d535addb527b4a80c8adefb23efce /etcd.install
parent7e839962bbe69d1375621dd7f18a54b9367c9fc6 (diff)
downloadaur-42a0e8d9b240eb5cecc95b19e7c4bfc270d3b1fa.tar.gz
v2.2.0
Diffstat (limited to 'etcd.install')
-rw-r--r--etcd.install13
1 files changed, 12 insertions, 1 deletions
diff --git a/etcd.install b/etcd.install
index 1e3696cc88b6..da8cd7b58c7e 100644
--- a/etcd.install
+++ b/etcd.install
@@ -1,4 +1,15 @@
-ETCD_DATA_DIR="/var/lib/etcd/"
+ETCD_DATA_DIR="/var/lib/etcd"
+
+pre_upgrade() {
+cat << EOF
+ To upgrade an existing etcd deployment to 2.2, you must be running 2.1.
+ If you’re running a version of etcd before 2.1, you must upgrade to 2.1 before upgrading to 2.2.
+ And you should, probably, read the following:
+ /usr/share/doc/etcd/04_to_2_snapshot_migration.md
+ /usr/share/doc/etcd/upgrade_2_1.md
+ /usr/share/doc/etcd/upgrade_2_2.md
+EOF
+}
post_install() {
mkdir -p "${ETCD_DATA_DIR}"