summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/systemconfig.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-01 21:16:23 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-01 21:16:23 (GMT)
commit1db55b90810b80ae17e78a50988475267b6b7953 (patch)
tree423560c466b83c232dc640fead31b33caf8d28ed /abs/core-testing/LinHES-config/systemconfig.sh
parentaba0fa319833cc66f9bc6fdb1dd425718b6314dc (diff)
downloadlinhes_pkgbuild-1db55b90810b80ae17e78a50988475267b6b7953.zip
linhes_pkgbuild-1db55b90810b80ae17e78a50988475267b6b7953.tar.gz
linhes_pkgbuild-1db55b90810b80ae17e78a50988475267b6b7953.tar.bz2
change location of master user smb.conf file to /home/mythtv/templates/smb.conf
Give the user the ability to add custom shares by editing /home/mythtv/templates/user.shares
Diffstat (limited to 'abs/core-testing/LinHES-config/systemconfig.sh')
-rwxr-xr-xabs/core-testing/LinHES-config/systemconfig.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-config/systemconfig.sh b/abs/core-testing/LinHES-config/systemconfig.sh
index 6d63f5c..52b7ba3 100755
--- a/abs/core-testing/LinHES-config/systemconfig.sh
+++ b/abs/core-testing/LinHES-config/systemconfig.sh
@@ -15,6 +15,7 @@ BASE=""
#TEMPLATES="/usr/share/templates"
. /etc/profile
+MYTHHOME=$BASE/home/mythtv
. $MV_ROOT/bin/networkconfig.sh
PACMAN="pacman --noconfirm"
postfix=`cat ${BASE}/usr/local/share/mythtv/.releasetype`
@@ -669,9 +670,9 @@ then
mkdir ${BASE}/etc/samba
fi
- if [ -f ${BASE}/data/home/mythtv/templates/smb.conf ]
+ if [ -f ${MYTHHOME}/templates/smb.conf ]
then
- install -D -m755 ${BASE}/data/home/mythtv/templates/smb.conf ${BASE}/etc/samba/smb.conf
+ install -D -m755 ${MYTHHOME}/templates/smb.conf ${BASE}/etc/samba/smb.conf
else
sed -e "s/^.*workgroup =.*$/ workgroup = $Samba_domain/g " \
-e "s/^.*server string = .*$/ server string = $hostname/g" $TEMPLATES/samba/smb.conf.template > ${BASE}/etc/samba/smb.conf