|
Revision 3188, 1.2 KB
(checked in by kris, 34 hours ago)
|
|
Fixed up bacula-bat, now it includes the kmdr-executor binary, so we don't need to prompt the user for it anymore :)
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # Filename: PBI.SetupScript.sh |
|---|
| 3 | # Place any custom installation code here. |
|---|
| 4 | # This script will be run after your program is extracted into |
|---|
| 5 | # /Programs/<ProgNameVer>/ |
|---|
| 6 | # Available variables: |
|---|
| 7 | # $PROGDIR - Directory where the files will be extracted to. |
|---|
| 8 | # $USERNAME - Username of who started the installation. |
|---|
| 9 | # $INSTALLMODE - Set to 'TEXT' or 'GUI', depending on which installer is running. |
|---|
| 10 | # |
|---|
| 11 | # TIP: 'kdialog' should be used for user interaction. |
|---|
| 12 | # To interact with the progress dialog echo these flags: |
|---|
| 13 | # echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar |
|---|
| 14 | # echo 'SETSTEPS: <num>' # Set the current progress of the progress bar |
|---|
| 15 | # echo 'MSG: <text>' # Display this text above progress bar |
|---|
| 16 | ######################################### |
|---|
| 17 | |
|---|
| 18 | # Check which font config we want to link to |
|---|
| 19 | if [ -d "/PCBSD/local/etc/fonts" ] |
|---|
| 20 | then |
|---|
| 21 | ln -s /PCBSD/local/etc/fonts /Programs/${PROGDIR}/etc/fonts |
|---|
| 22 | else |
|---|
| 23 | ln -s /usr/local/etc/fonts /Programs/${PROGDIR}/etc/fonts |
|---|
| 24 | fi |
|---|
| 25 | |
|---|
| 26 | ln -s /Programs/${PROGDIR}/.sbin/bat /usr/local/sbin/bat |
|---|
| 27 | |
|---|
| 28 | kdialog --msgbox "Bat is executed with script bat.sh which searches Bat configurations from ~/.bacula-bat by default. Please create the folder and put your configurations in there!" |
|---|
| 29 | |
|---|
| 30 | echo "LAUNCHCLOSE: /Programs/${PROGDIR}/.sbin/bat-kommander.sh" |
|---|