@name 建立本地HOST
()
| 1510 | |
| 1511 | @staticmethod |
| 1512 | def set_spring_user(): |
| 1513 | ''' |
| 1514 | @name 建立本地HOST |
| 1515 | ''' |
| 1516 | try: |
| 1517 | pwd.getpwnam('springboot') |
| 1518 | except KeyError: |
| 1519 | public.ExecShell('useradd springboot') |
| 1520 | |
| 1521 | def del_hosts(self, domain): |
| 1522 | ''' |
no test coverage detected