Use yum instead of apt
Change script permissions