remove extra temp_file reference

This commit is contained in:
tremor021 2025-03-17 15:09:49 +01:00
parent 23e5216f2e
commit 4158827aa3

View File

@ -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