better backup

This commit is contained in:
tremor021 2025-03-17 15:11:10 +01:00
parent 4158827aa3
commit 28d9fe7f10

View File

@ -36,7 +36,7 @@ function update_script() {
msg_info "Updating $APP to ${RELEASE}"
temp_dir=$(mktemp -d)
cp /opt/cryptpad/config/config.js /opt/config.js
cp -f /opt/cryptpad/config/config.js /opt/config.js
wget -q "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir
cd $temp_dir
tar zxf $RELEASE.tar.gz