mirror of
https://github.com/YunoHost-Apps/streama_ynh.git
synced 2024-09-03 20:26:30 +02:00
add app source
This commit is contained in:
parent
6fb91bd301
commit
9a55914b96
2 changed files with 19 additions and 4 deletions
6
conf/app.src
Normal file
6
conf/app.src
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
SOURCE_URL=https://github.com/streamaserver/streama/releases/download/v1.6.0-RC9/streama-1.6.0-RC9.war
|
||||||
|
SOURCE_SUM=850fe2e4aed30eb3f83d77f1d9d8421ad0ab52f24ec7faaa07d4269cc440d4e4
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=war
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_FILENAME=streama-1.6.0-RC9.war
|
|
@ -47,7 +47,7 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
### If the app uses nginx as web server (written in HTML/PHP in most cases), the final path should be "/var/www/$app".
|
### If the app uses nginx as web server (written in HTML/PHP in most cases), the final path should be "/var/www/$app".
|
||||||
### If the app provides an internal web server (or uses another application server such as uwsgi), the final path should be "/opt/yunohost/$app"
|
### If the app provides an internal web server (or uses another application server such as uwsgi), the final path should be "/opt/yunohost/$app"
|
||||||
final_path=/opt/yunohost/$app
|
final_path=/opt/$app
|
||||||
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||||
|
|
||||||
# Normalize the url path syntax
|
# Normalize the url path syntax
|
||||||
|
@ -91,11 +91,20 @@ ynh_package_install openjdk-8-jre-headless
|
||||||
# INSTALL STREAMA
|
# INSTALL STREAMA
|
||||||
#==============================================
|
#==============================================
|
||||||
|
|
||||||
mkdir /opt/streama
|
#mkdir /opt/streama
|
||||||
#mkdir /var/www/$path_url
|
#mkdir /var/www/$path_url
|
||||||
wget https://github.com/streamaserver/streama/releases/download/v1.6.0-RC9/streama-1.6.0-RC9.war
|
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
|
#mv streama-1.6.0-RC9.war /opt/streama
|
||||||
chmod +x /opt/streama/streama-1.6.0-RC9.war
|
#chmod +x /opt/streama/streama-1.6.0-RC9.war
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
#=================================================
|
||||||
|
ynh_app_setting_set $app final_path $final_path
|
||||||
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
ynh_setup_source "$final_path"
|
||||||
|
chmod +x $final_path/streama-1.6.0-RC9.war
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue