File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff 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
7171msg_ok " Completed Successfully!\n"
7272echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
7373echo -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} "
Original file line number Diff line number Diff 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
6565msg_ok " Completed Successfully!\n"
6666echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
6767echo -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} "
You can’t perform that action at this time.
0 commit comments