VLC Install by script
#!/bin/bash
#Change Directory
cd /Users/Shared/
#Download VLC
curl -LO https://get.videolan.org/vlc/3.0.11.1/macosx/vlc-3.0.11.1.dmg
vlc_dmg="/Users/Shared/vlc-3.0.11.1.dmg"
#Mount VLC
hdiutil attach /Users/Shared/vlc-3.0.11.1.dmg
#Delete Old VLC Applicatio
rm -rf /Applications/VLC.app
#Installation
cp -r /Volumes/VLC\ media\ player/VLC.app /Applications/
#Permission
if [ -d /Applications/VLC\ media\ player.app ]; then
chown -R root:admin /Applications/VLC.app
chmod -R 775 /Applications/VLC.app
fi
#Cleanup
/usr/bin/hdiutil detach -force /Volumes/VLC\ media\ player
/bin/rm -rf "$vlc_dmg"
exit 0
Comments
Post a Comment