Skip to content

Commit 51f9de2

Browse files
authored
fluid-calendar: Fix failed build; simplify backup (#3417)
1 parent c0d31cc commit 51f9de2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

ct/fluid-calendar.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ function update_script() {
3535
systemctl stop fluid-calendar.service
3636
msg_ok "Stopped $APP"
3737

38-
msg_info "Creating Backup"
39-
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" /opt/fluid-calendar
40-
msg_ok "Backup Created"
41-
4238
msg_info "Updating $APP to v${RELEASE}"
39+
cp /opt/fluid-calendar/.env /opt/fluid.env
40+
rm -rf /opt/fluid-calendar
4341
tmp_file=$(mktemp)
4442
wget -q "https://github.com/dotnetfactory/fluid-calendar/archive/refs/tags/v${RELEASE}.zip" -O $tmp_file
4543
unzip -q $tmp_file
46-
cp -rf ${APP}-${RELEASE}/* /opt/fluid-calendar
44+
mv ${APP}-${RELEASE}/ /opt/fluid-calendar
45+
mv /opt/fluid.env /opt/fluid-calendar/.env
4746
cd /opt/fluid-calendar
4847
export NEXT_TELEMETRY_DISABLED=1
4948
$STD npm install --legacy-peer-deps
@@ -58,8 +57,6 @@ function update_script() {
5857

5958
msg_info "Cleaning Up"
6059
rm -rf $tmp_file
61-
rm -rf "/opt/${APP}_backup_$(date +%F).tar.gz"
62-
rm -rf /tmp/${APP}-${RELEASE}
6360
msg_ok "Cleanup Completed"
6461

6562
echo "${RELEASE}" >/opt/${APP}_version.txt

0 commit comments

Comments
 (0)