Commit 0d07e9c5 by Őry Máté

devenv: better init

parent a7ab1a66
...@@ -8,8 +8,7 @@ else ...@@ -8,8 +8,7 @@ else
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
...@@ -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
...@@ -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
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment