Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
08e2593e
Commit
08e2593e
authored
6 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed init.d in Wowza setup and updated Wowza (refs
#27237
).
parent
1704bfd6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
2.Common_services/4.Wowza/0_setup.py
+8
-10
8 additions, 10 deletions
2.Common_services/4.Wowza/0_setup.py
with
8 additions
and
10 deletions
2.Common_services/4.Wowza/0_setup.py
+
8
−
10
View file @
08e2593e
...
...
@@ -12,14 +12,10 @@ def setup(interactive=True):
if
not
license
:
utils
.
log
(
'
No Wowza license set, skipping Wowza installation.
'
)
return
wowza_setup_name
=
'
WowzaStreamingEngine-4.7.
1
-linux-x64-installer.deb
'
wowza_setup_name
=
'
WowzaStreamingEngine-4.7.
7
-linux-x64-installer.deb
'
utils
.
log
(
'
It may take a while to download the Wowza installer from the UbiCast server.
'
)
if
utils
.
check_cmd
(
'
lsb_release -a | grep 14
'
)
==
0
:
jre_package
=
'
openjdk-7-jre-headless
'
# 14.04
else
:
jre_package
=
'
openjdk-8-jre-headless
'
# 16.04
cmds
=
[
'
apt-get install -y
%s
'
%
jre_package
,
'
apt-get install -y
openjdk-8-jre-headless
'
,
# Get and install Wowza
'
[ -f
"
/tmp/%(name)s
"
] && (dpkg -I
"
/tmp/%(name)s
"
|| rm
"
/tmp/%(name)s
"
) || true
'
%
{
'
name
'
:
wowza_setup_name
},
'
[ -f
"
/tmp/%(name)s
"
] || wget -q
"
https://panel.ubicast.eu/media/storage/%(name)s
"
-O
"
/tmp/%(name)s
"'
%
{
'
name
'
:
wowza_setup_name
},
...
...
@@ -27,8 +23,6 @@ def setup(interactive=True):
# Configure Wowza
'
echo
"
%s
"
> /usr/local/WowzaStreamingEngine/conf/Server.license
'
%
license
,
'
echo
"
ubicast %s admin
"
> /usr/local/WowzaStreamingEngine/conf/admin.password
'
%
utils
.
get_conf
(
'
WOWZA_MANAGER_PWD
'
),
'
update-rc.d WowzaStreamingEngine defaults
'
,
'
update-rc.d WowzaStreamingEngineManager defaults
'
,
'
chmod +x /usr/local/WowzaStreamingEngine/logs
'
,
'
cp -R /usr/local/WowzaStreamingEngine/examples/LiveVideoStreaming/conf/live /usr/local/WowzaStreamingEngine/conf/
'
,
'
mkdir -p /usr/local/WowzaStreamingEngine/applications/live
'
,
...
...
@@ -36,8 +30,12 @@ def setup(interactive=True):
(
'
{{ live_pwd }}
'
,
utils
.
get_conf
(
'
WOWZA_LIVE_PWD
'
)),
)),
'
cp
"
%s/Tune.xml
"
/usr/local/WowzaStreamingEngine/conf/Tune.xml
'
%
dir_path
,
'
/etc/init.d/WowzaStreamingEngine restart
'
,
'
/etc/init.d/WowzaStreamingEngineManager restart
'
,
'
sed -i
"
s@#### BEGIN INIT INFO@### BEGIN INIT INFO@
"
/etc/init.d/WowzaStreamingEngine
'
,
'
sed -i
"
s@#### BEGIN INIT INFO@### BEGIN INIT INFO@
"
/etc/init.d/WowzaStreamingEngineManager
'
,
'
systemctl enable WowzaStreamingEngine
'
,
'
systemctl enable WowzaStreamingEngineManager
'
,
'
systemctl restart WowzaStreamingEngine
'
,
'
systemctl restart WowzaStreamingEngineManager
'
,
]
ms_conf
=
'
/etc/mediaserver/lives_conf.py
'
if
os
.
path
.
exists
(
ms_conf
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment