Skip to content

Commit 3d08066

Browse files
committed
fix cryptpad & komodo
1 parent e0f71f8 commit 3d08066

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ct/cryptpad.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ function update_script() {
3737
msg_info "Updating $APP to ${RELEASE}"
3838
temp_dir=$(mktemp -d)
3939
cp -f /opt/cryptpad/config/config.js /opt/config.js
40-
curl -fsSL "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir" -o $(basename "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir")
41-
cd $temp_dir
42-
tar zxf $RELEASE.tar.gz
43-
cp -rf cryptpad-$RELEASE/* /opt/cryptpad
40+
curl -fsSL "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -o "$temp_dir/cryptpad-${RELEASE}.tar.gz"
41+
cd "$temp_dir"
42+
tar zxf "cryptpad-${RELEASE}.tar.gz"
43+
cp -rf "cryptpad-${RELEASE}"/* /opt/cryptpad
4444
cd /opt/cryptpad
4545
$STD npm ci
4646
$STD npm run install:components
@@ -71,4 +71,4 @@ description
7171
msg_ok "Completed Successfully!\n"
7272
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
7373
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
74-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
74+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

ct/komodo.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ function update_script() {
4848
}
4949

5050
GITHUB_URL="https://raw.githubusercontent.com/mbecker20/komodo/main/compose/${COMPOSE_FILE}"
51-
curl -fsSL "$GITHUB_URL" || {" -o ""/opt/komodo/${COMPOSE_FILE}""
51+
if ! curl -fsSL "$GITHUB_URL" -o "/opt/komodo/${COMPOSE_FILE}"; then
5252
msg_error "Failed to download ${COMPOSE_FILE} from GitHub!"
5353
mv "/opt/komodo/${BACKUP_FILE}" "/opt/komodo/${COMPOSE_FILE}"
5454
exit 1
55-
}
55+
fi
5656

5757
$STD docker compose -p komodo -f "/opt/komodo/$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d
5858
msg_ok "Updated ${APP}"
@@ -65,4 +65,4 @@ description
6565
msg_ok "Completed Successfully!\n"
6666
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
6767
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
68-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9120${CL}"
68+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9120${CL}"

0 commit comments

Comments
 (0)