fixed disable windows index.html on ftp

This commit is contained in:
Igor Korsukov 2020-10-06 14:01:04 +02:00
parent da2a9dedbc
commit 5b0630a3d3
3 changed files with 6 additions and 8 deletions

View file

@ -26,7 +26,9 @@ echo "ARTIFACT_NAME: $ARTIFACT_NAME"
SSH_KEY=build/ci/tools/osuosl/osuosl_nighlies_rsa
chmod 600 $SSH_KEY
echo "Copy ${ARTIFACTS_DIR}/${ARTIFACT_NAME} to ftp/linux/$ARCH"
scp -oStrictHostKeyChecking=no -C -i $SSH_KEY $ARTIFACTS_DIR/$ARTIFACT_NAME musescore-nightlies@ftp-osl.osuosl.org:~/ftp/linux/$ARCH
# Delete old files
echo "Delete old MuseScoreNightly files"
ssh -i $SSH_KEY musescore-nightlies@ftp-osl.osuosl.org "cd ~/ftp/linux/$ARCH; ls MuseScoreNightly* -t | tail -n +41 | xargs rm -f"

View file

@ -25,11 +25,9 @@ echo "ARTIFACT_NAME: $ARTIFACT_NAME"
SSH_KEY=build/ci/tools/osuosl/osuosl_nighlies_rsa
chmod 600 ${SSH_KEY}
echo "Copy ${ARTIFACTS_DIR}/${ARTIFACT_NAME} to ftp/macosx"
scp -oStrictHostKeyChecking=no -C -i ${SSH_KEY} ${ARTIFACTS_DIR}/${ARTIFACT_NAME} musescore-nightlies@ftp-osl.osuosl.org:~/ftp/macosx
# Delete old files
echo "Delete old MuseScoreNightly files"
ssh -i $SSH_KEY musescore-nightlies@ftp-osl.osuosl.org "cd ~/ftp/macosx; ls MuseScoreNightly* -t | tail -n +41 | xargs rm -f"
# At the moment, the HTML page has not been updated, and the need for it is not clear.
# Therefore, we will disable the HTML page.
ssh -i $SSH_KEY musescore-nightlies@ftp-osl.osuosl.org "cd ~/ftp/macosx; mv index.html index.html_off"

View file

@ -38,13 +38,11 @@ Icacls %SSH_KEY% /Inheritance:r
Icacls %SSH_KEY% /Grant:r "%Username%":(R,W)
Icacls %SSH_KEY%
ECHO "Copy %ARTIFACT_NAME% to ftp/windows"
scp -oStrictHostKeyChecking=no -C -i %SSH_KEY% %ARTIFACT_NAME% musescore-nightlies@ftp-osl.osuosl.org:~/ftp/windows/
:: Delete old files
ECHO "Delete old MuseScoreNightly files"
ssh -oStrictHostKeyChecking=no -i %SSH_KEY% musescore-nightlies@ftp-osl.osuosl.org "cd ~/ftp/windows; ls MuseScoreNightly* -t | tail -n +41 | xargs rm -f"
:: At the moment, the HTML page has not been updated, and the need for it is not clear.
:: Therefore, we will disable the HTML page.
ssh -i $SSH_KEY musescore-nightlies@ftp-osl.osuosl.org "cd ~/ftp/macosx; mv index.html index.html_off"
CD ..