diff --git a/ct/cryptpad.sh b/ct/cryptpad.sh index 68a8877..cc9847c 100644 --- a/ct/cryptpad.sh +++ b/ct/cryptpad.sh @@ -36,11 +36,10 @@ function update_script() { msg_info "Updating $APP to ${RELEASE}" temp_dir=$(mktemp -d) - temp_file=$(mktemp) cp /opt/cryptpad/config/config.js /opt/config.js - wget -q "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir -O $temp_file + wget -q "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir cd $temp_dir - tar zxf $temp_file + tar zxf $RELEASE.tar.gz cp -rf cryptpad-$RELEASE/* /opt/cryptpad cd /opt/cryptpad $STD npm ci