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
Last revision Both sides next revision
languages:java:index.html [2018/03/09 01:01]
kurihara
languages:java:index.html [2018/03/16 13:53]
kurihara [java.py]
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')


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