8 |
chmod 777 "${i}" |
chmod 777 "${i}" |
9 |
done |
done |
10 |
echo " done." |
echo " done." |
11 |
|
LINKS="`cat <<EOF |
12 |
|
. edit |
13 |
|
conditions.tpl templates/lifestyle.tpl |
14 |
|
pgConditions.php inc/pgLifestyle.php |
15 |
|
menuConditions.php inc/menuHome.php |
16 |
|
menuLifestyle.php inc/menuHome.php |
17 |
|
EOF |
18 |
|
`" |
19 |
echo -n "Creating symlinks:" |
echo -n "Creating symlinks:" |
20 |
if [ ! -e "templates/d_s.tpl" ] |
echo "${LINKS}" | while read line |
21 |
then |
do |
22 |
echo -n " [templates/d_s.tpl]" |
set -- ${line} |
23 |
ln -s temp.tpl templates/d_s.tpl |
[ -e "${2}" ] && continue |
24 |
fi |
echo -n " [${2}]" |
25 |
if [ ! -e "templates/lifestyle.tpl" ] |
ln -s "${1}" "${2}" |
26 |
then |
done |
|
echo -n " [templates/lifestyle.tpl]" |
|
|
ln -s conditions.tpl templates/lifestyle.tpl |
|
|
fi |
|
|
if [ ! -e "inc/pgLifestyle.php" ] |
|
|
then |
|
|
echo -n " [inc/pgLifestyle.php]" |
|
|
ln -s pgConditions.php inc/pgLifestyle.php |
|
|
fi |
|
27 |
echo " done." |
echo " done." |
28 |
exit "${?}" |
exit "${?}" |