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 "${?}" |