Add script to puninstall Manna SOLVED

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

Add script to puninstall Manna SOLVED

#1 Post by oldyeller »

Hello Everyone,

I have made an puninstall script for Manna, But I need to add to this script so that if people want to uninstall it but want to keep the notes made with the Editor I am putting in Manna. they will have the option to keep or remove the files that will be in my-documents/Manna.

Here is the script:

Code: Select all

#!/bin/sh

rm -f /root/Startup/Manna-Menu
rm -r /root/my-documents/Manna  
rm -f /usr/local/bin/Apocrypha
rm -f /usr/local/bin/Deepsleep
rm -f /usr/local/bin/HolyTrinity
rm -f /usr/local/bin/jasher
rm -f /usr/local/bin/kjv
rm -f /usr/local/bin/lifetimes
rm -f /usr/local/bin/Manna-Menu
rm -f /usr/local/bin/repentence
rm -f /usr/local/bin/rrj
rm -f /usr/local/bin/Surrender
rm -f /usr/local/bin/twelve
rm -f /usr/local/bin/wfg
rm -f /usr/local/bin/rmds
rm -f /usr/local/bin/rmht
rm -f /usr/local/bin/rmrep
rm -f /usr/local/bin/rmrrj
rm -f /usr/local/bin/rms
rm -r /usr/local/Manna
rm -f /usr/share/applications/manna.desktop
rm -f /usr/share/icons/hicolor/48x48/apps/Apocrypha.png
rm -f /usr/share/icons/hicolor/48x48/apps/Bible.png
rm -f /usr/share/icons/hicolor/48x48/apps/Book.png
rm -f /usr/share/icons/hicolor/48x48/apps/Book2.png
rm -f /usr/share/icons/hicolor/48x48/apps/Com.png
rm -f /usr/share/icons/hicolor/48x48/apps/jasher.png
rm -f /usr/share/icons/hicolor/48x48/apps/manna.png
rm -f /usr/share/icons/hicolor/scalable/apps/xiphos.svg
rm -f /usr/share/pixmaps/bibletime.xpm
Any help would be great Thanks
Last edited by oldyeller on Sat 30 Mar 2013, 03:19, edited 1 time in total.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#2 Post by SFR »

Hey Oldyeller

Is Xdialog ok?

Code: Select all

Xdialog -title="Uninstalling" --yesno "Remove contents of /root/my-documents/Manna?" 0 0
if [ $? -eq 0 ]; then
  rm -r /root/my-documents/Manna  
fi
If you'd like to ask an opposite question (to keep contents), just change the if coondition to:
if [ $? -eq 1 ]; then

(0 = yes, 1 = no, 255 = window's_been_closed)

BTW, you can also change the default yes/no buttons' labels:

Code: Select all

Xdialog --ok-label="Keep" --cancel-label="Remove" --yesno "What to do with those files?" 0 0
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#3 Post by oldyeller »

Hi SFR,

Thanks this worked out just fine.


Cheers

Post Reply