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
0d07e9c5
authored
Jan 31, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenv: better init
parent
a7ab1a66
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
miscellaneous/devenv/.bash_login
+7
-8
miscellaneous/devenv/clean.sh
+2
-1
miscellaneous/devenv/init.sh
+1
-1
miscellaneous/devenv/nextinit.sh
+2
-2
No files found.
miscellaneous/devenv/.bash_login
View file @
0d07e9c5
...
@@ -2,14 +2,13 @@
...
@@ -2,14 +2,13 @@
cd /opt/webadmin/
cd /opt/webadmin/
if [ -d cloud ]
if [ -d cloud ]
then
then
:
:
else
else
echo Run init.sh? [N/y]
echo Run init.sh? [N/y]
read
read
if [ "$REPLY" = y ]
if [ "$REPLY" = y ]
then
then
passwd
source /home/cloud/init.sh
/home/cloud/init.sh
fi
fi
fi
fi
cd cloud
cd cloud
miscellaneous/devenv/clean.sh
View file @
0d07e9c5
...
@@ -8,7 +8,7 @@ then
...
@@ -8,7 +8,7 @@ then
exit
1
exit
1
fi
fi
cp /opt/webadmin/cloud/miscellaneous/devenv/
{
.bash_login,init.sh,clean.sh
}
~/
rm
-rf
/opt/webadmin/cloud
*
rm
-rf
/opt/webadmin/cloud
*
rm .bash_history
rm .bash_history
rm
-f
~/.gitconfig
rm
-f
~/.gitconfig
...
@@ -20,4 +20,5 @@ DROP DATABASE webadmin;
...
@@ -20,4 +20,5 @@ DROP DATABASE webadmin;
A
A
sudo
chpasswd
<<<
'cloud:ezmiez'
sudo
chpasswd
<<<
'cloud:ezmiez'
sudo
passwd
-e
cloud
rm ~/.ssh/authorized_keys
rm ~/.ssh/authorized_keys
miscellaneous/devenv/init.sh
View file @
0d07e9c5
...
@@ -46,4 +46,4 @@ mv cloud cloud.$(date +%s) || true
...
@@ -46,4 +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
miscellaneous/devenv/nextinit.sh
source
miscellaneous/devenv/nextinit.sh
miscellaneous/devenv/nextinit.sh
View file @
0d07e9c5
...
@@ -3,9 +3,7 @@
...
@@ -3,9 +3,7 @@
cd
/opt/webadmin/cloud
cd
/opt/webadmin/cloud
./manage.py syncdb
--noinput
./manage.py syncdb
--noinput
./manage.py migrate
./manage.py migrate
echo
'"test" user password:'
./manage.py loaddata miscellaneous/dump.json
./manage.py loaddata miscellaneous/dump.json
./manage.py changepassword
test
./manage.py update
./manage.py update
#Set up store server
#Set up store server
...
@@ -36,3 +34,5 @@ sudo /opt/webadmin/cloud/miscellaneous/store-server/TopList.py >/dev/null 2>&1 &
...
@@ -36,3 +34,5 @@ sudo /opt/webadmin/cloud/miscellaneous/store-server/TopList.py >/dev/null 2>&1 &
cd
/opt/webadmin/cloud/miscellaneous/devenv
cd
/opt/webadmin/cloud/miscellaneous/devenv
sudo
cp vimrc.local /etc/vim/vimrc.local
sudo
cp vimrc.local /etc/vim/vimrc.local
./manage.py changepassword
test
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