FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
StratoSource/dev_setup.sh at master · StratoSource/StratoSource · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
StratoSource
/
StratoSource
Public
Notifications
You must be signed in to change notification settings
Fork
23
Star
74
Code
Issues
20
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
StratoSource
/
dev_setup.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
71 lines (57 loc) · 1.8 KB
Breadcrumbs
StratoSource
/
dev_setup.sh
Copy path
File metadata and controls
71 lines (57 loc) · 1.8 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
####
#
Basic install script to setup a dev environment to run Stratosource without using /usr/django (rpm installer)
#
#
###
if
[[
$#
-ne
1 ]]
;
then
echo
'
usage: setup.sh <project directory>
'
exit
0
fi
TARGET=
$(
readlink -m
$1
)
REL=
`
cat /etc/system-release
`
echo
'
installing dependencies
'
FIRST_INSTALL=
'
no
'
if
[[
"
$REL
"
=~
^Fedora.
*
]]
;
then
yum -y install python python-pip httpd mod_wsgi MySQL-python wget git cgit unzip mysql mariadb-server tzlocal
pip install --upgrade pip
pip install -r resources/requirements.txt
else
yum -y install epel-release
yum clean all
yum -y install python python-pip httpd mod_wsgi MySQL-python wget git cgit unzip mysql mariadb-server tzlocal
pip install --upgrade pip
pip install -r resources/requirements.txt
fi
if
[
!
-f
/etc/httpd/conf.d/stratosource.conf ]
;
then
echo
'
configuring apache
'
cp resources/httpd.conf /etc/httpd/conf.d/stratosource.conf
FIRST_INSTALL=
'
yes
'
fi
if
[
$FIRST_INSTALL
==
'
yes
'
]
;
then
echo
'
configure mysql
'
#
fix a bug in the mysql rpm installer that does not set correct permissions
mysql_install_db
chown -R mysql.mysql /var/lib/mysql
touch /var/log/mysqld.log
chown mysql:mysql /var/log/mysqld.log
mkdir /var/run/mysqld
chown mysql:mysql /var/run/mysqld
echo
'
configuring cgit
'
eval
grep django /etc/cgitrc
if
[
$?
-eq
1 ]
;
then
echo
"
include=/var/sfrepo/config/cgitrepo
"
>>
/etc/cgitrc
fi
if
[
!
-f
/var/sfrepo/config/cgitrepo ]
;
then
cp /usr/django/resources/cgitrepo /var/sfrepo/config
chmod 777 /var/sfrepo/config/cgitrepo
fi
cp /usr/django/resources/memcached /etc/sysconfig
mkdir
$TARGET
/logs
chmod 777
$TARGET
/logs
mkdir /var/sfrepo
chmod 777 /var/sfrepo
ln -s /var/sftmp /tmp
chmod 777 /var/sftmp
echo
'
restarting services
'
service memcached restart
service httpd restart
service mysqld restart
Back
|
FazBrowse Home
|
New Git URL