@@ -3,7 +3,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
33# Copyright (c) 2021-2025 community-scripts ORG
44# Author: vhsdream
55# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6- # Source: https://rxresu.me
6+ # Source: https://rxresume.org
77
88APP=" Reactive-Resume"
99var_tags=" ${var_tags:- documents} "
@@ -20,80 +20,75 @@ color
2020catch_errors
2121
2222function update_script() {
23- header_info
24- check_container_storage
25- check_container_resources
23+ header_info
24+ check_container_storage
25+ check_container_resources
2626
27- if [[ ! -f /etc/systemd/system/Reactive-Resume.service ]]; then
28- msg_error " No ${ APP} Installation Found!"
29- exit
30- fi
31- RELEASE=$( curl -fsSL https://api.github.com/repos/AmruthPillai /Reactive-Resume/releases/latest | grep " tag_name" | awk ' {print substr($2, 3 , length($2)-4 ) }' )
32- if [[ " ${RELEASE} " != " $( cat /opt/ ${APP} _version.txt ) " ]] || [[ ! -f /opt/ ${APP} _version.txt ]]; then
33- msg_info " Stopping services"
34- systemctl stop Reactive-Resume
35- msg_ok " Stopped services"
27+ if [[ ! -f /etc/systemd/system/Reactive-Resume.service ]]; then
28+ msg_error " No $APP Installation Found!"
29+ exit
30+ fi
31+ RELEASE=$( curl -fsSL https://api.github.com/repos/lazy-media /Reactive-Resume/releases/latest | grep " tag_name" | awk ' {print substr($2, 2 , length($2)-3 ) }' )
32+ if [[ ! -f " $HOME " /.reactive-resume ]] || [[ " $RELEASE " != " $( cat " $HOME " /.reactive-resume ) " ]]; then
33+ msg_info " Stopping services"
34+ systemctl stop Reactive-Resume
35+ msg_ok " Stopped services"
3636
37- msg_info " Updating $APP to v${RELEASE} "
38- cp /opt/${APP} /.env /opt/rxresume.env
39- res_tmp=$( mktemp)
40- rm -rf /opt/${APP}
41- curl -fsSL " https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE} .zip" -O $res_tmp
42- $STD unzip $res_tmp
43- mv ${APP} -${RELEASE} / /opt/${APP}
44- cd /opt/${APP}
45- export PUPPETEER_SKIP_DOWNLOAD=" true"
46- export NEXT_TELEMETRY_DISABLED=1
47- export CI=" true"
48- export NODE_ENV=" production"
49- $STD pnpm install --frozen-lockfile
50- $STD pnpm run build
51- $STD pnpm run prisma:generate
52- mv /opt/rxresume.env /opt/${APP} /.env
53- msg_ok " Updated $APP to v${RELEASE} "
37+ cp /opt/" $APP " /.env /opt/rxresume.env
38+ rm -rf /opt/" $APP "
39+ fetch_and_deploy_gh_release " Reactive-Resume" " lazy-media/Reactive-Resume"
40+ msg_info " Updating $APP to v${RELEASE} "
41+ cd /opt/" $APP "
42+ export PUPPETEER_SKIP_DOWNLOAD=" true"
43+ export NEXT_TELEMETRY_DISABLED=1
44+ export CI=" true"
45+ export NODE_ENV=" production"
46+ $STD pnpm install --frozen-lockfile
47+ $STD pnpm run build
48+ $STD pnpm run prisma:generate
49+ mv /opt/rxresume.env /opt/" $APP " /.env
50+ msg_ok " Updated $APP to v${RELEASE} "
5451
55- msg_info " Updating Minio"
56- systemctl stop minio
57- cd /tmp
58- curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio.deb -o minio.deb
59- $STD dpkg -i minio.deb
60- msg_ok " Updated Minio"
52+ msg_info " Updating Minio"
53+ systemctl stop minio
54+ cd /tmp
55+ curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio.deb -o minio.deb
56+ $STD dpkg -i minio.deb
57+ msg_ok " Updated Minio"
6158
62- msg_info " Updating Browserless (Patience)"
63- systemctl stop browserless
64- cp /opt/browserless/.env /opt/browserless.env
65- rm -rf browserless
66- brwsr_tmp=$( mktemp)
67- TAG=$( curl -fsSL https://api.github.com/repos/browserless/browserless/tags? per_page=1 | grep " name" | awk ' {print substr($2, 3, length($2)-4) }' )
68- curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v${ TAG} .zip -O $brwsr_tmp
69- $STD unzip $brwsr_tmp
70- mv browserless-${ TAG} / /opt/browserless
71- cd /opt/browserless
72- $STD npm install
73- rm -rf src/routes/{chrome,edge,firefox,webkit}
74- $STD node_modules/playwright-core/cli.js install --with-deps chromium
75- $STD npm run build
76- $STD npm run build:function
77- $STD npm prune production
78- mv /opt/browserless.env /opt/browserless/.env
79- msg_ok " Updated Browserless"
59+ msg_info " Updating Browserless (Patience)"
60+ systemctl stop browserless
61+ cp /opt/browserless/.env /opt/browserless.env
62+ rm -rf /opt/ browserless
63+ brwsr_tmp=$( mktemp)
64+ TAG=$( curl -fsSL https://api.github.com/repos/browserless/browserless/tags? per_page=1 | grep " name" | awk ' {print substr($2, 3, length($2)-4) }' )
65+ curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v" $ TAG" .zip -o " $brwsr_tmp "
66+ $STD unzip " $brwsr_tmp "
67+ mv browserless-" $ TAG" / /opt/browserless
68+ cd /opt/browserless
69+ $STD npm install
70+ rm -rf src/routes/{chrome,edge,firefox,webkit}
71+ $STD node_modules/playwright-core/cli.js install --with-deps chromium
72+ $STD npm run build
73+ $STD npm run build:function
74+ $STD npm prune production
75+ mv /opt/browserless.env /opt/browserless/.env
76+ msg_ok " Updated Browserless"
8077
81- msg_info " Restarting services"
82- systemctl start minio Reactive-Resume browserless
83- msg_ok " Restarted services"
78+ msg_info " Restarting services"
79+ systemctl start minio Reactive-Resume browserless
80+ msg_ok " Restarted services"
8481
85- msg_info " Cleaning Up"
86- rm -f /tmp/minio.deb
87- rm -f $brwsr_tmp
88- rm -f $res_tmp
89- msg_ok " Cleanup Completed"
82+ msg_info " Cleaning Up"
83+ rm -f /tmp/minio.deb
84+ rm -f " $brwsr_tmp "
85+ msg_ok " Cleanup Completed"
9086
91- echo " ${RELEASE} " > /opt/${APP} _version.txt
92- msg_ok " Update Successful"
93- else
94- msg_ok " No update required. ${APP} is already at v${RELEASE} "
95- fi
96- exit
87+ msg_ok " Update Successful"
88+ else
89+ msg_ok " No update required. $APP is already at v{$RELEASE }"
90+ fi
91+ exit
9792}
9893
9994start
0 commit comments