Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo -e "## INSTALLATION DE FLASH PLAYER ##\n"
- echo "Téléchargement de l'image disque..."
- curl -o http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player_osx.dmg
- echo "Montage de l'image disque..."
- diskutil mount install_flash_player_osx.dmg
- echo "Extraction du paquet d'installation..."
- pkgutil --expand /Volumes/Flash\ Player/Install\ Adobe\ Flash\ Player.app/Contents/Resources/Adobe\ Flash\ Player.pkg Flash_tmp
- echo "Extraction des fichiers du programme..."
- mkdir Flash_tmp/Flash_files/
- cd Flash_tmp/Flash_files/
- cat Flash_tmp/AdobeFlashPlayerComponent.pkg/Payload | gunzip -dc | cpio -i
- echo "Extraction du fichier Flash Player.plugin..."
- Flash_tmp/AdobeFlashPlayerComponent.pkg/Scripts/finalize Flash_tmp/Flash_files/
- echo "Veuillez saisir le mot de passe administrateur pour installer le plugin :"
- sudo cp Library/Internet\ Plug-Ins/Flash\ Player.plugin /Library/Internet\ Plug-Ins/
- cd ../..
- echo "Nettoyage des fichiers temporaires..."
- rm -rf Flash_tmp
- echo "Démontage et suppression de l'image disque..."
- diskutil umount /Volumes/Flash\ Player/
- rm -f install_flash_player_osx.dmg
- echo -e "\n## INSTALLATION TERMINEE ##"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement