/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu
NameSizeModeActions
apache.py19290644editdlrm
apache.pyc13540644editdlrm
apache.pyo13540644editdlrm
ebs.py99380644editdlrm
ebs.pyc85590644editdlrm
ebs.pyo85590644editdlrm
installer.py35450644editdlrm
installer.pyc39700644editdlrm
installer.pyo39700644editdlrm
mysql.py48570644editdlrm
mysql.pyc33440644editdlrm
mysql.pyo33440644editdlrm
trac.py62700644editdlrm
trac.pyc48380644editdlrm
trac.pyo48380644editdlrm
__init__.py11120644editdlrm
__init__.pyc1600644editdlrm
__init__.pyo1600644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pyc (3970B)
Ñò Å-õSc @s{ddkZddkZddkZddkZddkZddkZddklZdeii i fd„ƒYZ dS(iÿÿÿÿN(tgetpwnamt InstallercBsbeZdZddddddd d„Zd„Zd„Zd„Zd„Zd„Z d „Z RS( s5 Base Installer class for Ubuntu-based AMI's t*trootc CsÒ|djottidƒƒ}n|djottidƒƒ}ntd|dƒ} | o8x5| iƒD]#\} } | id| | fƒqsWn| id|||||||fƒ| iƒdS( sÐ Write a file to /etc/cron.d to schedule a command env is a dict containing environment variables you want to set in the file name will be used as the name of the file trandomi<is/etc/cron.d/%stws%s=%s s%s %s %s %s %s %s %s N(tstrRt randrangetopentitemstwritetclose( tselftnametcommandtminutethourtmdaytmonthtwdaytwhotenvtfptkeytvalue((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pytadd_cron"s   &cCsqtiid|ƒ}t|dƒ}|i|ƒ|iƒti|titi Bti Bƒ|i d|ƒdS(s7 Add this file to the init.d directory s /etc/init.dRs!/usr/sbin/update-rc.d %s defaultsN( tostpathtjoinRR R tchmodtstattS_IREADtS_IWRITEtS_IEXECtrun(R tfileR tf_pathtf((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pytadd_init_script3s   !cCs‹tiid||fƒtiidƒp|iddtdtƒntddƒ}|i d||fƒ|i ƒ|ti |s cCs|id|ƒdS(Ns/etc/init.d/%s stop(R"(R t service_name((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pytstopLscCs|id|ƒdS(Ns/etc/init.d/%s start(R"(R R1((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pytstartOscCs!|id|ƒt|ƒ}|S(s3 Create a user on the local system s useradd -m %s(R"R(R tusertusr((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pyt create_userRs cCs t‚dS(s> This is the only method you need to override N(tNotImplementedError(R ((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pytinstallZsN( t__name__t __module__t__doc__tNoneRR&R0R2R3R6R8(((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pyRs    ( tboto.pyami.installersR*Rtos.pathRRtpwdRtpyamit installersR(((sJ/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/installer.pyts