Skip to content

Commit 53fa29e

Browse files
authored
Reactive Resume: switch source to community-maintained fork (#6051)
Remove entire folder before update
1 parent 33e19bc commit 53fa29e

3 files changed

Lines changed: 80 additions & 89 deletions

File tree

ct/reactive-resume.sh

Lines changed: 63 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -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

88
APP="Reactive-Resume"
99
var_tags="${var_tags:-documents}"
@@ -20,80 +20,75 @@ color
2020
catch_errors
2121

2222
function 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

9994
start

frontend/public/json/reactive-resume.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"updateable": true,
1010
"privileged": false,
1111
"interface_port": 3000,
12-
"documentation": "https://docs.rxresu.me/",
13-
"website": "https://rxresu.me",
12+
"documentation": "https://docs.rxresume.org/",
13+
"website": "https://rxresume.org",
1414
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/png/reactive-resume-light.png",
1515
"config_path": "/opt/reactive-resume/.env",
1616
"description": "A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever.",

install/reactive-resume-install.sh

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

88
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
99
color
@@ -32,19 +32,16 @@ $STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME to $DB_
3232
$STD sudo -u postgres psql -c "ALTER USER $DB_USER WITH SUPERUSER;"
3333
msg_ok "Set up Database"
3434

35-
msg_info "Installing ${APPLICATION}"
35+
msg_info "Installing $APPLICATION"
3636
MINIO_PASS=$(openssl rand -base64 48)
3737
ACCESS_TOKEN=$(openssl rand -base64 48)
3838
REFRESH_TOKEN=$(openssl rand -base64 48)
3939
CHROME_TOKEN=$(openssl rand -hex 32)
4040
LOCAL_IP=$(hostname -I | awk '{print $1}')
4141
TAG=$(curl -fsSL https://api.github.com/repos/browserless/browserless/tags?per_page=1 | grep "name" | awk '{print substr($2, 3, length($2)-4) }')
42-
RELEASE=$(curl -fsSL https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
43-
curl -fsSL "https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE}.zip" -o v${RELEASE}.zip
44-
$STD unzip v${RELEASE}.zip
45-
mv ${APPLICATION}-${RELEASE}/ /opt/${APPLICATION}
46-
cd /opt/${APPLICATION}
47-
corepack enable
42+
43+
fetch_and_deploy_gh_release "Reactive-Resume" "lazy-media/Reactive-Resume"
44+
cd /opt/"$APPLICATION"
4845
export CI="true"
4946
export PUPPETEER_SKIP_DOWNLOAD="true"
5047
export NODE_ENV="production"
@@ -53,13 +50,13 @@ $STD pnpm install --frozen-lockfile
5350
$STD pnpm run build
5451
$STD pnpm install --prod --frozen-lockfile
5552
$STD pnpm run prisma:generate
56-
msg_ok "Installed ${APPLICATION}"
53+
msg_ok "Installed $APPLICATION"
5754

5855
msg_info "Installing Browserless (Patience)"
5956
cd /tmp
60-
curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v${TAG}.zip -o v${TAG}.zip
61-
$STD unzip v${TAG}.zip
62-
mv browserless-${TAG} /opt/browserless
57+
curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v"$TAG".zip -o v"$TAG".zip
58+
$STD unzip v"$TAG".zip
59+
mv browserless-"$TAG" /opt/browserless
6360
cd /opt/browserless
6461
$STD npm install
6562
rm -rf src/routes/{chrome,edge,firefox,webkit}
@@ -77,9 +74,10 @@ MINIO_ROOT_PASSWORD="${MINIO_PASS}"
7774
MINIO_VOLUMES=/opt/minio
7875
MINIO_OPTS="--address :9000 --console-address 127.0.0.1:9001"
7976
EOF
80-
cat <<EOF >/opt/${APPLICATION}/.env
77+
cat <<EOF >/opt/"$APPLICATION"/.env
8178
NODE_ENV=production
8279
PORT=3000
80+
# for use behind a reverse proxy, use your FQDN for PUBLIC_URL and STORAGE_URL
8381
PUBLIC_URL=http://${LOCAL_IP}:3000
8482
STORAGE_URL=http://${LOCAL_IP}:9000/rxresume
8583
DATABASE_URL=postgresql://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME}?schema=public
@@ -116,14 +114,13 @@ HOST=localhost
116114
PORT=8080
117115
TOKEN=${CHROME_TOKEN}
118116
EOF
119-
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
120117
{
121118
echo "${APPLICATION} Credentials"
122119
echo "Database User: $DB_USER"
123120
echo "Database Password: $DB_PASS"
124121
echo "Database Name: $DB_NAME"
125122
echo "Minio Root Password: ${MINIO_PASS}"
126-
} >>~/${APPLICATION}.creds
123+
} >>~/"$APPLICATION".creds
127124
msg_ok "Configured applications"
128125

129126
msg_info "Creating Services"
@@ -136,7 +133,7 @@ WorkingDirectory=/usr/local/bin
136133
EnvironmentFile=/opt/minio/.env
137134
EOF
138135

139-
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
136+
cat <<EOF >/etc/systemd/system/"$APPLICATION".service
140137
[Unit]
141138
Description=${APPLICATION} Service
142139
After=network.target postgresql.service minio.service
@@ -167,15 +164,14 @@ Restart=unless-stopped
167164
WantedBy=multi-user.target
168165
EOF
169166
systemctl daemon-reload
170-
systemctl enable -q --now minio.service ${APPLICATION}.service browserless.service
167+
systemctl enable -q --now minio.service "$APPLICATION".service browserless.service
171168
msg_ok "Created Services"
172169

173170
motd_ssh
174171
customize
175172

176173
msg_info "Cleaning up"
177-
rm -f /tmp/v${RELEASE}.zip
178-
rm -f /tmp/v${TAG}.zip
174+
rm -f /tmp/v"$TAG".zip
179175
rm -f /tmp/minio.deb
180176
$STD apt-get -y autoremove
181177
$STD apt-get -y autoclean

0 commit comments

Comments
 (0)