diff --git a/6.HCA/0_setup.py b/203.HCA/0_setup.py similarity index 96% rename from 6.HCA/0_setup.py rename to 203.HCA/0_setup.py index 1815c30ebfcb04de45e59bcee4adb9027d44a244..f7defd93837d41742c8049a6f65bba08cab30d1c 100644 --- a/6.HCA/0_setup.py +++ b/203.HCA/0_setup.py @@ -23,7 +23,7 @@ def setup(interactive=True): print('Configuration of HCA http.ini file skipped (no FTP passwords in config).') # rtmp.ini live_pwd = utils.get_conf('WOWZA_LIVE_PWD') - if live_pwd: + if live_pwd and os.path.exists('/var/www/streaming'): cmds.append('mkdir -p /etc/hca') cmds.append(dict(line='write', template='%s/rtmp.ini' % dir_path, target='/etc/hca/rtmp.ini', params=( ('{{ MS_SERVER_NAME }}', utils.get_conf('MS_SERVER_NAME', 'mediaserver')), diff --git a/6.HCA/http.ini b/203.HCA/http.ini similarity index 100% rename from 6.HCA/http.ini rename to 203.HCA/http.ini diff --git a/6.HCA/rtmp.ini b/203.HCA/rtmp.ini similarity index 100% rename from 6.HCA/rtmp.ini rename to 203.HCA/rtmp.ini diff --git a/launcher.sh b/launcher.sh index b5f44c269a6147bdff35edc570df58eb08d22b17..ec28eb27c0137235766f12c4ffdaade85b277108 100755 --- a/launcher.sh +++ b/launcher.sh @@ -36,7 +36,6 @@ monitor() { mediaserver() { python3 /root/envsetup/envsetup.py 3 python3 /root/envsetup/envsetup.py 5 - python3 /root/envsetup/envsetup.py 6 python3 /root/envsetup/envsetup.py 8 python3 /root/envsetup/envsetup.py 61 python3 /root/envsetup/envsetup.py 7