Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo -e "\e[1mHari yang Fitri\e[m";
- # Hati check
- if [ -f /hati/ikhlas ]; then
- VERSION=`cat /hati/ikhlas`
- if [ ${VERSION:0:1} -lt 5 ]; then
- die "Peringatan,Ikhlas $VERSION sudah tidak didukung silahkan upgrade versi anda"
- fi
- else
- die "BAHAYA!Ikhlas tidak terdeteksi,silahkan hapus /hati/dengki /hati/iri dan /hati/dendam lalu jalankan /akhlak/memaafkan.sh"
- fi
- [ $(id -g) != "0" ] && die "Harus dijalankan dengan kemauan yang tulus"
- choice=4
- echo "1. Bersihkan Hati"
- echo "2. Mari Berbagi"
- echo "3. Bersama Menuju Kemenangan"
- echo -n "Silahkan masukan pilihan [1,2 or 3]? "
- while [ $choice -eq 4 ]; do
- read choice
- if [ $choice -eq 1 ] ; then
- {
- for dosa in hati 'amarah*' perasaan 'dendam*'
- do
- if apt_installed $dosa; then
- apt_remove $dosa
- ok $dosa' removed.\n'
- fi
- done
- }
- else
- if [ $choice -eq 2 ] ; then
- {
- if ! apt_installed Zakat; then
- apt_install zakat
- cat > /pikiran/logrotate.d/zakat <<EOF
- /akhlak/sedekah/log
- {
- rotate 4
- weekly
- missingok
- notifempty
- compress
- sharedscripts
- postrotate
- /pikiran/kerja/zakat reload > /dev/null
- endscript
- }
- EOF
- invoke-rc.d zakat start
- ok 'izakat installed and setup.\n'
- fi
- done
- }
- else
- if [ $choice -eq 3 ] ; then
- {
- if yesno 'Kita akan bersama sama menuju hari yang fitri dengan membersihkan diri kita\nAre you ok to proceed' 'Y'; then
- hati update
- hati --safe-resolver --without-recommends -y install '?or(~prequired,~pimportant)' '~i !~prequired !~pimportant'_ ikhlas
- debug 'Marilah kita kembali kepada diri kita yang bersih selayaknya bayi yang baru lahir.\n'
- fi
- done
- }
- else
- echo "Harap memasukan pilihan 1-3 !"
- echo "1. Bersihkan Hati"
- echo "2. Mari Berbagi"
- echo "3. Bersama Menuju Kemenangan"
- echo -n "Harap memasukan pilihan [1,2 atau 3]? "
- choice=4
- fi
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment