-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup
executable file
·39 lines (33 loc) · 1.22 KB
/
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#
# this script will install any package that can use
# the automated install and uninstall mechanisms provided by SetupHelper
# that is, no custom prompting for command line exection
# and no custom installation such as editing replacement files
#
packageLogFile="/var/log/ContextStorage/current"
# link the package's setup script to this one:
# ln -s /data/SetupHelper/genericSetupScript /data/<package name>/setup
# tell CommonResources to:
# prompt for install/uninstall
# auto install or auto uninstall
# then exit
# CommonResources will NOT return here !
#rebootNeeded=true
#standardPromptAndActions='yes'
#### following lines incorporate helper resources into this script
pkgDir=$( dirname $0 )
pkgName=$( basename $pkgDir )
pkgRoot=$( dirname $pkgDir )
if [ -e "$pkgDir/HelperResources/IncludeHelpers" ]; then
source "$pkgDir/HelperResources/IncludeHelpers"
elif [ -e "$pkgRoot/SetupHelper/HelperResources/IncludeHelpers" ]; then
source "$pkgRoot/SetupHelper/HelperResources/IncludeHelpers"
else
echo "$pkgName: helper files not found - can't continue" | tee -a "/data/log/SetupHelper"
exit 1
fi
#### end of lines to include helper resources
# never returns from CommonResources !
rebootNeeded='true'
endScript INSTALL_FILES