1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-19 13:58:06 +00:00

fix cryptpad & komodo

This commit is contained in:
CanbiZ 2025-04-01 13:57:00 +02:00
parent e0f71f8ed6
commit 3d0806600d
2 changed files with 8 additions and 8 deletions

View File

@ -37,10 +37,10 @@ function update_script() {
msg_info "Updating $APP to ${RELEASE}" msg_info "Updating $APP to ${RELEASE}"
temp_dir=$(mktemp -d) temp_dir=$(mktemp -d)
cp -f /opt/cryptpad/config/config.js /opt/config.js cp -f /opt/cryptpad/config/config.js /opt/config.js
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") curl -fsSL "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -o "$temp_dir/cryptpad-${RELEASE}.tar.gz"
cd $temp_dir cd "$temp_dir"
tar zxf $RELEASE.tar.gz tar zxf "cryptpad-${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
$STD npm run install:components $STD npm run install:components

View File

@ -48,11 +48,11 @@ function update_script() {
} }
GITHUB_URL="https://raw.githubusercontent.com/mbecker20/komodo/main/compose/${COMPOSE_FILE}" GITHUB_URL="https://raw.githubusercontent.com/mbecker20/komodo/main/compose/${COMPOSE_FILE}"
curl -fsSL "$GITHUB_URL" || {" -o ""/opt/komodo/${COMPOSE_FILE}"" if ! curl -fsSL "$GITHUB_URL" -o "/opt/komodo/${COMPOSE_FILE}"; then
msg_error "Failed to download ${COMPOSE_FILE} from GitHub!" msg_error "Failed to download ${COMPOSE_FILE} from GitHub!"
mv "/opt/komodo/${BACKUP_FILE}" "/opt/komodo/${COMPOSE_FILE}" mv "/opt/komodo/${BACKUP_FILE}" "/opt/komodo/${COMPOSE_FILE}"
exit 1 exit 1
} fi
$STD docker compose -p komodo -f "/opt/komodo/$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d $STD docker compose -p komodo -f "/opt/komodo/$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"