remove extra temp_file reference
This commit is contained in:
parent
23e5216f2e
commit
4158827aa3
@ -36,11 +36,10 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating $APP to ${RELEASE}"
|
msg_info "Updating $APP to ${RELEASE}"
|
||||||
temp_dir=$(mktemp -d)
|
temp_dir=$(mktemp -d)
|
||||||
temp_file=$(mktemp)
|
|
||||||
cp /opt/cryptpad/config/config.js /opt/config.js
|
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
|
cd $temp_dir
|
||||||
tar zxf $temp_file
|
tar zxf $RELEASE.tar.gz
|
||||||
cp -rf cryptpad-$RELEASE/* /opt/cryptpad
|
cp -rf cryptpad-$RELEASE/* /opt/cryptpad
|
||||||
cd /opt/cryptpad
|
cd /opt/cryptpad
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
|
Loading…
x
Reference in New Issue
Block a user