Sfoglia il codice sorgente

revise clone-typo3-on-test.sh

Olivier Massot 2 anni fa
parent
commit
72cde92c2a
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      typo3/clone-install-on-test.sh

+ 3 - 1
typo3/clone-install-on-test.sh

@@ -15,7 +15,7 @@ now=$(date '+%Y%m%d-%H%M')
 
 # shellcheck disable=SC2029
 ssh exploitation@prod-front "cd /var/www/typo3/ ; tar cvzf /home/exploitation/typo3_install_$now.tar.gz . --exclude=./public/fileadmin/user_upload/* --exclude=./archive --exclude=./public/fileadmin/_processed_ --exclude=./var/log/* --exclude=./var/cache/*" || exit
-scp exploitation@prod-front:/var/www/typo3/typo3_install_$now.tar.gz /home/exploitation || exit
+scp exploitation@prod-front:/home/exploitation/typo3_install_$now.tar.gz /home/exploitation || exit
 
 rm -r /var/www/typo3 || exit
 mkdir /var/www/typo3
@@ -23,4 +23,6 @@ mkdir /var/www/typo3
 tar xvzf "/home/exploitation/typo3_install_$now.tar.gz" -C /var/www/typo3/ || exit
 rm "/home/exploitation/typo3_install_$now.tar.gz"
 
+ssh exploitation@prod-front "rm /home/exploitation/typo3_install_$now.tar.gz"
+
 echo "+ Typo3 install cloned +"