mirror of
https://github.com/YunoHost-Apps/jellyseerr_ynh.git
synced 2024-09-03 19:26:18 +02:00
change to github tag
This commit is contained in:
parent
b50d6128ef
commit
d34bd9dc9c
3 changed files with 13 additions and 38 deletions
|
@ -41,21 +41,9 @@ ram.runtime = "50M"
|
|||
[resources.sources]
|
||||
|
||||
[resources.sources.main]
|
||||
format = "docker"
|
||||
extract = true
|
||||
prefetch = false
|
||||
|
||||
amd64.url = "fallenbagel/jellyseerr:1.5.0"
|
||||
amd64.platform = "linux/amd64"
|
||||
amd64.sha256 = "3ff0d7af326f4e6db4dbe8679284a4230c9fd4205f59ecc9637ecfbdedb473c3"
|
||||
|
||||
arm64.url = "fallenbagel/jellyseerr:1.5.0"
|
||||
arm64.platform = "linux/arm64"
|
||||
arm64.sha256 = "e1d0c43780be6e2cfa5b98c2385914e7c5931be1cd7e20b2ff0b88a558e644ea"
|
||||
|
||||
armhf.url = "fallenbagel/jellyseerr:1.5.0"
|
||||
armhf.platform = "linux/armhf"
|
||||
armhf.sha256 = "71142a38c3133e82b18a6dbc5fbba4752ec7a56b9204f47c23b8ef6a7c2a3921"
|
||||
url = "https://github.com/Fallenbagel/jellyseerr/archive/refs/tags/v1.5.0.tar.gz"
|
||||
sha256 = "0bcfb5a73fff85a1ca4b521e33bc36263ba40be71144efcac140079a3fe14f80"
|
||||
autoupdate.strategy = "latest_github_tag"
|
||||
|
||||
|
||||
[resources.system_user]
|
||||
|
@ -71,7 +59,7 @@ ram.runtime = "50M"
|
|||
main.default = 5055
|
||||
|
||||
[resources.apt]
|
||||
packages = "mariadb-server"
|
||||
packages = "yarn, mariadb-server"
|
||||
|
||||
[resources.database]
|
||||
type = "mysql"
|
||||
|
|
|
@ -16,18 +16,19 @@ ynh_script_progression --message="Installing dependencies..." --weight=10
|
|||
|
||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setting up source files..."
|
||||
ynh_script_progression --message="Setting up source files..." --weight=1
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
@ -39,20 +40,16 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# MAKE INSTALL
|
||||
#=================================================
|
||||
ynh_script_progression --message="Making install..."
|
||||
# BUILD APP
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building app..." --weight=10
|
||||
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir/"
|
||||
|
||||
ls -lah "$install_dir/"
|
||||
ls -lah "$install_dir/build/"
|
||||
ls -lah "$install_dir/build/opt/"
|
||||
|
||||
rsync -a "$install_dir/build/opt/jellyseer/" "$install_dir/"
|
||||
ynh_secure_remove --file="$install_dir/build"
|
||||
yarn install
|
||||
yarn run build
|
||||
yarn start
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
|
|
@ -42,18 +42,8 @@ ynh_remove_systemd_config
|
|||
|
||||
ynh_remove_nginx_config
|
||||
|
||||
ynh_remove_fpm_config
|
||||
|
||||
ynh_remove_logrotate
|
||||
|
||||
ynh_remove_fail2ban_config
|
||||
|
||||
# Remove other various files specific to the app... such as :
|
||||
|
||||
ynh_secure_remove --file="/etc/cron.d/$app"
|
||||
|
||||
ynh_secure_remove --file="/etc/$app"
|
||||
|
||||
ynh_secure_remove --file="/var/log/$app"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue