diff --git a/README.copy-userdata-to-new-installation b/README.copy-userdata-to-new-installation index 1debb0f..a750f73 100644 --- a/README.copy-userdata-to-new-installation +++ b/README.copy-userdata-to-new-installation @@ -37,7 +37,8 @@ cp cryptpad.BAK.${backup_date}/customize/application_config.js cryptpad/customiz # Copy user data # -for i in blob blobstage block datastore ; do +#for i in blob blobstage block datastore ; do +for i in data datastore block blob ; do echo"" echo -e " Syncing directory '${i}'.." diff --git a/README.install b/README.install index 44123ce..2a9e4a8 100644 --- a/README.install +++ b/README.install @@ -3,7 +3,7 @@ # ================= # - See: -# - https://blog.cavebeat.org/2017/07/cryptpad-installation-on-debian-stretch/ +# - https://docs.cryptpad.org/en/admin_guide/installation.html # - # - See also: # - git repository: https://github.com/xwiki-labs/cryptpad diff --git a/README.upgrade b/README.upgrade new file mode 100644 index 0000000..5189ced --- /dev/null +++ b/README.upgrade @@ -0,0 +1,61 @@ + +# ==================== +# - Upgrading CryptPad +# ==================== + +# see: https://docs.cryptpad.org/en/admin_guide/maintenance.html#upgrading-cryptpad + +# - Note! +# - +# - Always read the release notes before upgrading, as there may be changes +# - that require special consideration. + + +cryptpad_user=cryptpad + + +# - Stop cryptpad +# - +systemctl stop cryptpad + + +# Stop iptables firewall +# +ipt-firewall-server flush +ip6t-firewall-server + + +# Login as CryptPad user +# +su - ${cryptpad_user} + + +# - Backup existing installation +# - +cp -a cryptpad cryptpad.BAK.$(date +%Y-%m-%d-%H%M) + + +# - Change into installation directory +# - +cd cryptpad + +# - Update Git repository +# - +git pull +npm update +npm run install:components + + +exit + + +# Restart firewll +# +ipt-firewall-server +ip6t-firewall-server + + +# - Start cryptpad +# - +systemctl start cryptpad +