Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
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 @@
cd /opt/webadmin/
if [ -d cloud ]
then
:
:
else
echo Run init.sh? [N/y]
read
if [ "$REPLY" = y ]
then
passwd
/home/cloud/init.sh
fi
echo Run init.sh? [N/y]
read
if [ "$REPLY" = y ]
then
source /home/cloud/init.sh
fi
fi
cd cloud
miscellaneous/devenv/clean.sh
View file @
0d07e9c5
...
...
@@ -8,7 +8,7 @@ then
exit
1
fi
cp /opt/webadmin/cloud/miscellaneous/devenv/
{
.bash_login,init.sh,clean.sh
}
~/
rm
-rf
/opt/webadmin/cloud
*
rm .bash_history
rm
-f
~/.gitconfig
...
...
@@ -20,4 +20,5 @@ DROP DATABASE webadmin;
A
sudo
chpasswd
<<<
'cloud:ezmiez'
sudo
passwd
-e
cloud
rm ~/.ssh/authorized_keys
miscellaneous/devenv/init.sh
View file @
0d07e9c5
...
...
@@ -46,4 +46,4 @@ mv cloud cloud.$(date +%s) || true
git clone
'ssh://git@giccero.cloud.ik.bme.hu/cloud'
cd
cloud
miscellaneous/devenv/nextinit.sh
source
miscellaneous/devenv/nextinit.sh
miscellaneous/devenv/nextinit.sh
View file @
0d07e9c5
...
...
@@ -3,9 +3,7 @@
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
...
...
@@ -36,3 +34,5 @@ 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
./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