Skip to content

Commit 6c08814

Browse files
authored
zipline: fix old upload copy from v3 to v4 (#5015)
* zipline: fix old upload copy from v3 to v4 * rm for install
1 parent 4cca506 commit 6c08814

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ct/zipline.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ function update_script() {
4141
msg_info "Updating ${APP} to ${RELEASE}"
4242
cp /opt/zipline/.env /opt/
4343
mkdir -p /opt/zipline-upload
44-
cp -R /opt/zipline/upload/* /opt/zipline-upload/
44+
if [ -d /opt/zipline/upload ] && [ "$(ls -A /opt/zipline/upload)" ]; then
45+
cp -R /opt/zipline/upload/* /opt/zipline-upload/
46+
fi
4547
curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip")
4648
$STD unzip v"${RELEASE}".zip
4749
rm -R /opt/zipline

install/zipline-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ msg_ok "Created Service"
7878
motd_ssh
7979
customize
8080
msg_info "Cleaning up"
81+
rm -f /opt/v${RELEASE}.zip
8182
$STD apt-get -y autoremove
8283
$STD apt-get -y autoclean
8384
msg_ok "Cleaned"

0 commit comments

Comments
 (0)