diff --git a/seaman.py b/seaman.py index 7bdcfd1..e720825 100644 --- a/seaman.py +++ b/seaman.py @@ -107,7 +107,10 @@ class SeaManager(ServiceManager): if sea_server_src and exists(sea_server_src): if os.system('diff %s SeaServer' % sea_server_src): print('reload SeaServer') - os.rename('SeaServer', 'SeaServer0') + try: + os.rename('SeaServer', 'SeaServer0') + except Exception: + pass os.system('cp %s ./' % sea_server_src) return start_dir, env