/[health_html]/fix.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /fix.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed Aug 8 12:58:08 2001 UTC (22 years, 8 months ago) by ravilov
Branch: MAIN
File MIME type: application/x-sh
Conditions and Lifestyle news are now displayed in groups of 10.
mkdir.sh replaced with more general fix.sh.

1 ravilov 1.1 #! /bin/sh
2     echo -n "Creating dirs:"
3     for i in img/news img/bolesti templates_c
4     do
5     [ -e "${i}" ] && continue
6     echo -n " [${i}]"
7     mkdir -p "${i}"
8     chmod 777 "${i}"
9     done
10     echo " done."
11     echo -n "Creating symlinks:"
12     if [ ! -e "templates/d_s.tpl" ]
13     then
14     echo -n " [templates/d_s.tpl]"
15     ln -s temp.tpl templates/d_s.tpl
16     fi
17     if [ ! -e "templates/lifestyle.tpl" ]
18     then
19     echo -n " [templates/lifestyle.tpl]"
20     ln -s conditions.tpl templates/lifestyle.tpl
21     fi
22     if [ ! -e "inc/pgLifestyle.php" ]
23     then
24     echo -n " [inc/pgLifestyle.php]"
25     ln -s pgConditions.php inc/pgLifestyle.php
26     fi
27     echo " done."
28     exit "${?}"

  ViewVC Help
Powered by ViewVC 1.1.26