Pynguins

genconf_commands

install.sh
#!/bin/bash
EXPECTED_ARGS=1
E_BADARGS=65

if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: `basename $0` {arg}"
exit $E_BADARGS
fi
sudo su $1 -c /usr/bin/install_pyracms.sh
cd ~/genconf
./genconf_cli.py -ew $1
./genconf_cli.py -dx $1
./genconf_cli.py -dp $1
./genconf_cli.py -uwd $1 pyracms
./genconf_cli.py -uw $1 pyracms.wsgi
./genconf_cli.py -uc $1
sudo ./genconf_cli.py -d
./genconf_cli.py -d -ap
sudo cp output/web/apache/* /etc/apache2/sites-enabled/
sudo /etc/init.d/apache2 restart

install_pyracms.sh
#!/bin/bash
cd ~
rm -rf env
virtualenv env
source env/bin/activate
bzr branch lp:pyracms
cd pyracms
python setup.py develop
initialize_pyracms_db production.ini

Add a user
./genconf_cli.py -as pynguins.com ipfetcher.pynguins.com
./genconf_cli.py -cau ipfetcher ipfetcher.pynguins.com
./genconf_cli.py -aa ipfetcher
# You may want to enable php etc...
sudo ./genconf_cli.py -d -ap
sudo cp output/web/apache/* /etc/apache2/sites-enabled/
sudo /etc/init.d/apache2 restart
sudo run-parts /etc/cron.hourly/

Comments | Gallery