-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·52 lines (40 loc) · 1.42 KB
/
install.sh
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
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
echo "creating database..."
php scripts/do.php migrate
echo "create cache/fragments dir..."
mkdir -p cache/fragments
echo "create cache/generated_code..."
mkdir -p cache/generated_code
echo "create cache/templates..."
mkdir -p cache/templates
echo "create log..."
mkdir -p log
echo "create lib..."
mkdir -p lib
if [ -e public/achievements -a -d public/achievements ]; then
echo "move public/achievements to public/images/achievements..."
sudo mv public/achievements public/images/
else
echo "create public/images/achievements..."
mkdir -p public/images/achievements
fi
if [ -e public/users -a -d public/users ]; then
echo "move public/users to public/images/users..."
sudo mv public/users public/images/
else
echo "create public/images/users..."
mkdir -p public/images/users
fi
echo "create public/files..."
mkdir -p public/files
echo "get Stato framework lib..."
cd lib
#svn export --force https://stato.svn.sourceforge.net/svnroot/stato/tags/rel_0-10-0/ Stato
svn export --force https://stato.svn.sourceforge.net/svnroot/stato/branches/0-10-stable/ Stato
cd ..
echo "set rights on directories..."
sudo chown -R www-data:www-data cache log public/images/achievements public/images/users public/pix public/files
sudo chmod 700 cache cache/fragments cache/generated_code cache/templates public/images/achievements public/images/users public/pix public/files
sudo chmod 755 log
echo "OK"
echo ":)"