Skip to content

Commit 15d20a5

Browse files
authored
Fix files not copying to correct directory (#2521)
1 parent bedfbd2 commit 15d20a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ct/pingvin.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function update_script() {
3939
cd /opt
4040
wget -q "https://github.com/stonith404/pingvin-share/archive/refs/tags/v${RELEASE}.zip"
4141
unzip -q v${RELEASE}.zip
42-
mv pingvin-share-${RELEASE} /opt/pingvin-share
42+
cp -rf pingvin-share-${RELEASE}/* /opt/pingvin-share
4343
cd /opt/pingvin-share
4444
cd backend
4545
npm install &>/dev/null
@@ -49,6 +49,7 @@ function update_script() {
4949
npm run build &>/dev/null
5050
echo "${RELEASE}" >"/opt/pingvin_version.txt"
5151
rm -rf /opt/v${RELEASE}.zip
52+
rm -rf /opt/pingvin-share-${RELEASE}
5253
msg_ok "Updated Pingvin Share to v${RELEASE}"
5354

5455
msg_info "Starting Pingvin Share"

0 commit comments

Comments
 (0)