Commit 0d07e9c5 by Őry Máté

devenv: better init

parent a7ab1a66
......@@ -8,8 +8,7 @@ else
read
if [ "$REPLY" = y ]
then
passwd
/home/cloud/init.sh
source /home/cloud/init.sh
fi
fi
cd cloud
......@@ -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
......@@ -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
......@@ -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
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