Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
bbee944d
authored
Jan 30, 2013
by
x
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenv: move more init parts to git
parent
3a81d598
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
32 deletions
+49
-32
miscellaneous/devenv/init.sh
+1
-32
miscellaneous/devenv/nextinit.sh
+38
-0
miscellaneous/devenv/vimrc.local
+10
-0
No files found.
miscellaneous/devenv/init.sh
View file @
bbee944d
...
@@ -46,35 +46,4 @@ mv cloud cloud.$(date +%s) || true
...
@@ -46,35 +46,4 @@ mv cloud cloud.$(date +%s) || true
git clone
'ssh://git@giccero.cloud.ik.bme.hu/cloud'
git clone
'ssh://git@giccero.cloud.ik.bme.hu/cloud'
cd
cloud
cd
cloud
./manage.py syncdb
--noinput
miscellaneous/devenv/nextinit.sh
./manage.py migrate
./manage.py createsuperuser
--email
=
cloud@ik.bme.hu
./manage.py loaddata /home/cloud/user.yaml 2>/dev/null
||
true
./manage.py loaddata /home/cloud/fw.yaml
./manage.py loaddata /home/cloud/one.yaml
./manage.py loaddata /home/cloud/store.yaml
./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
#Temporary directory
temp_dir = /tmp/dl
EOF
sudo
/opt/webadmin/cloud/miscellaneous/store-server/CloudStore.py
>
/dev/null 2>&1 &
miscellaneous/devenv/nextinit.sh
0 → 100755
View file @
bbee944d
#!/bin/bash
cd
/opt/webadmin/cloud
./manage.py syncdb
--noinput
./manage.py migrate
echo
'"test" user password:'
./manage.py loaddata miscellaneous/dump.json
./manage.py changepassword
test
./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
#Temporary directory
temp_dir = /tmp/dl
EOF
sudo
/opt/webadmin/cloud/miscellaneous/store-server/CloudStore.py
>
/dev/null 2>&1 &
sudo
/opt/webadmin/cloud/miscellaneous/store-server/TopList.py
>
/dev/null 2>&1 &
cd
/opt/webadmin/cloud/miscellaneous/devenv
sudo
cp vimrc.local /etc/vim/vimrc.local
miscellaneous/devenv/vimrc.local
0 → 100644
View file @
bbee944d
highlight ExtraWhitespace ctermfg=white ctermbg=red guibg=red guifg=white
match ExtraWhitespace /\(\s\+$\|^\s*\t\|,[^ ]\|[;]$\|#[^ ].\|def [A-Z]\|class [a-z]\)/
autocmd BufWinEnter * match ExtraWhitespace /\(\s\+$\|^\s*\t\|,[^ ]\|[;]$\|#[^ ].\|def [A-Z]\|class [a-z]\)/
autocmd BufWinLeave * call clearmatches()
set et
set sw=4
set ai
set smarttab
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