#!/bin/bash # # Script Instalasi Linux Freeze Ofris # Oleh : Andrian Dion P. # # (C) 2014 GPL v2 # GET="/usr/bin/wget -t inf -P" PKG_PATH="http://repo.ugm.ac.id/ekstra/.ugos_tools" FILE="ofris" DIRECTORY="/usr/bin" # Make sure only root can run our script if [[ $EUID -ne 0 ]]; then sudo bash $0 exit 1 fi clear sleep 1 function install { (sleep 1 if `ls /tmp/ | grep -q $FILE`; then cp -v /tmp/$FILE $DIRECTORY > /dev/null chmod +x $DIRECTORY/$FILE else $GET /tmp/ $PKG_PATH/$FILE cp -v /tmp/$FILE $DIRECTORY > /dev/null chmod +x $DIRECTORY/$FILE fi ) } #menjalankan function install echo "Installasi selesai.." sleep 1 clear echo "Silahkan jalankan perintah ofriz melalui terminal Anda.." sleep 1