Created
January 17, 2018 08:40
-
-
Save robinvanemden/ab2b91a614be5c1c48bf155e58f64c53 to your computer and use it in GitHub Desktop.
Couchbase Sync Gateway and Server - upgrade 1.3.1 to 1.5.1 and 4.5 to 5.0.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update letsencrypt certificate (TODO: make into cronjob) | |
cp /etc/letsencrypt/live/cb.mnds.org/* /home/sync_gateway | |
chown -R sync_gateway.sync_gateway * | |
# Couchbase 4.5 to 5.0 | |
service sync_gateway stop | |
/etc/init.d/couchbase-server stop | |
cd ~ | |
wget http://packages.couchbase.com/releases/couchbase-sync-gateway/1.5.1/couchbase-sync-gateway-community_1.5.1_x86_64.deb | |
dpkg -i couchbase-sync-gateway-community_1.5.1_x86_64.deb | |
rm couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb | |
wget https://packages.couchbase.com/releases/5.0.1/couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb | |
apt-get install python-httplib2 | |
dpkg -i couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb | |
rm couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb | |
cd /opt/couchbase/etc/ | |
wget https://gist.githubusercontent.com/robinvanemden/8ff2d044e1bfeaa918cf3ff11f8103d5/raw/e1612b15545bcca88c09f8d3573cbc513b06a152/couchbase_init.d | |
joe couchbase_init.d | |
chown couchbase.couchbase * | |
chmod 700 couchbase_init.d | |
cd ~ | |
/etc/init.d/couchbase-server start | |
service sync_gateway start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment