Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
00581971
authored
Jan 28, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed devenv server bootstrap
parent
353be7a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
+24
-1
miscellaneous/devenv/init.sh
+23
-0
miscellaneous/devenv/user.yaml
+1
-1
No files found.
miscellaneous/devenv/init.sh
View file @
00581971
...
@@ -49,4 +49,27 @@ cd cloud
...
@@ -49,4 +49,27 @@ cd cloud
./manage.py loaddata /home/cloud/user.yaml 2>/dev/null
||
true
./manage.py loaddata /home/cloud/user.yaml 2>/dev/null
||
true
./manage.py loaddata /home/cloud/fw.yaml
./manage.py loaddata /home/cloud/fw.yaml
./manage.py loaddata /home/cloud/one.yaml
./manage.py loaddata /home/cloud/one.yaml
./manage.py loaddata /home/cloud/store.yaml
./manage.py update
./manage.py update
#Set up store server
rm
-rf
/var/www/
*
mkdir
-p
/var/www
cd
/opt/webadmin/cloud/miscellaneous/store-server/
LOCAL_IP
=
$(
ip addr show dev eth0|grep inet|head
-1
|awk
'{print $2}'
|cut
-d
'/'
-f
1
)
cat
<<
EOF
> store.config
[store]
#Default root folder (for download and upload)
root_www_folder = /var/www
#Deafult binary folder (for executables)
root_bin_folder = /opt/webadmin/cloud/miscellaneous/store-server/
#Site host (for standalone server)
site_host = 0.0.0.0
#Site port (for standalone server)
site_port = 9000
#Site url (for download and upload links) %(variable)formatter ex: %(port)s
site_url = http://
${
LOCAL_IP
}
:%(site_port)s
#User manager script (add, del, set, update)
user_manager = FAKEUserManager.sh
EOF
sudo
/opt/webadmin/cloud/miscellaneous/store-server/CloudStore.py
>
/dev/null 2>&1 &
miscellaneous/devenv/user.yaml
View file @
00581971
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
is_superuser
:
true
is_superuser
:
true
last_login
:
2013-01-22 15:21:22+00:00
last_login
:
2013-01-22 15:21:22+00:00
last_name
:
'
'
last_name
:
'
'
password
:
pbkdf2_sha256$10000$
gx04X6OpW8kW$iCU3cuhqQcvq7I8tRVkrnES03ty/3vqN8ou4xZgfPBQ
=
password
:
pbkdf2_sha256$10000$
tHbyy0OTBCBQ$YVdhrXZVK6wi7Px/zX5zmpOGkQUnddXXdrwNFnJskx0
=
user_permissions
:
[]
user_permissions
:
[]
username
:
test
username
:
test
model
:
auth.user
model
:
auth.user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment