FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


languages:java:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
languages:java:index.html [2018/03/09 01:00]
kurihara [java.py]
languages:java:index.html [2018/03/16 13:53]
kurihara [java.py]
Line 34: Line 34:
 ===== java.py ===== ===== java.py =====
  
-$FHHOME/fabfile/php.py+$FHHOME/fabfile/java.py
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 62: Line 62:
     """ java.add_etc_profile:/usr/java/jdk1.8.0_74"""     """ java.add_etc_profile:/usr/java/jdk1.8.0_74"""
     # Backup     # Backup
-    sudo("cp -p /etc/pfofile /etc/pfofile.`date -d '1day ago' +%Y%m%d`")+    sudo("cp -p /etc/profile /etc/profile.`date -d '1day ago' +%Y%m%d`")
     # Add /etc/profile     # Add /etc/profile
     sudo('echo "" >> /etc/profile')     sudo('echo "" >> /etc/profile')
Line 73: Line 73:
 </sxh> </sxh>
  
- 
- 
-\\ 
-===== PHP Configuration ===== 
  
 \\ \\


languages/java/index.html.txt ยท Last modified: 2019/02/11 00:48 by kurihara