diff --git a/conf/streama.service b/conf/streama.service new file mode 100644 index 0000000..a79bda3 --- /dev/null +++ b/conf/streama.service @@ -0,0 +1,16 @@ +[Unit] +Description=streama +After=network.target + +[Service] +WorkingDirectory=/opt/streama/ +User=admin +Group=users +Type=simple +UMask=000 +ExecStart=/usr/bin/java -Djava.awt.headless=true -jar streama-1.6.0-RC9.war +RestartSec=15 +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/scripts/install b/scripts/install index bc0b6c4..a145c1b 100644 --- a/scripts/install +++ b/scripts/install @@ -76,17 +76,26 @@ ynh_app_setting_set $app is_public $is_public ### - Remove the section "CLOSE A PORT" in the remove script # Find a free port -port=$(ynh_find_port 8096) +port=$(ynh_find_port 8080) # Open this port yunohost firewall allow --no-upnp TCP $port 2>&1 ynh_app_setting_set $app port $port #============================================== -# INSTALL EMBY +# INSTALL JAVA #============================================== -wget --no-verbose 'https://github.com/MediaBrowser/Emby.Releases/releases/download/3.5.3.0/emby-server-deb_3.5.3.0_amd64.deb' -dpkg --install emby-server-deb_3.5.3.0_amd64.deb +ynh_package_install openjdk-8-jre-headless + +#============================================== +# INSTALL STREAMA +#============================================== + +mkdir /opt/streama +#mkdir /var/www/$path_url +wget https://github.com/streamaserver/streama/releases/download/v1.6.0-RC9/streama-1.6.0-RC9.war +mv streama-1.6.0-RC9.war /opt/streama +chmod +x /opt/streama/streama-1.6.0-RC9.war #================================================= # NGINX CONFIGURATION @@ -105,9 +114,8 @@ ynh_system_user_create $app #================================================= # MODIFY A CONFIG FILE #================================================= -#cp -a ../conf/onlyoffice-documentserver.conf /etc/onlyoffice/documentserver/nginx/onlyoffice-documentserver.conf -#ynh_replace_string "__NEXTCLOUDDOMAIN__" "$nextcloud_domain" "/etc/loolwsd/loolwsd.xml" -#ynh_replace_string "__PASSWORD__" "$password" "/etc/loolwsd/loolwsd.xml" + +cp -a ../conf/streama.service /etc/systemd/system/streama.service #================================================= # STORE THE CONFIG FILE CHECKSUM