diff --git a/manifest.toml b/manifest.toml index facb45b..67c11cb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -28,9 +28,11 @@ ram.runtime = "50M" [install] [install.domain] - type = "domain" - full_domain = true + + [install.path] + type = "path" + default = "/kavita/" [install.init_main_permission] type = "group" @@ -50,6 +52,21 @@ ram.runtime = "50M" [resources.ports] +[resources.sources] + [resources.sources.main] + in_subdir = true + amd64.url = "https://github.com/Kareadita/Kavita/releases/download/v0.7.2/kavita-linux-x64.tar.gz" + amd64.sha256 = "d4bc73321e1241a1e6247fc0c5ff14504e73c5b3ce9c22a237fd6eae7fc51f33" + arm64.url = "https://github.com/Kareadita/Kavita/releases/download/v0.7.2/kavita-linux-arm64.tar.gz" + arm64.sha256 = "634d8b1be654de18ac0238512b9e552e9ad2dd50e6113199907fce525f71f14c" + armhf.url = "https://github.com/Kareadita/Kavita/releases/download/v0.7.2/kavita-linux-arm.tar.gz" + armhf.sha256 = "3bf7aac85f51432c8cc0a46ea885bb0167b03e9c0209858a76b1785f884cf104" + + #autoupdate.strategy = "latest_github_release" + #autoupdate.asset.amd64 = ".*\.amd64.tar.gz" + #autoupdate.asset.arm64 = ".*\.arm64.tar.gz" + #autoupdate.asset.armhf = ".*\.arm.tar.gz" + [resources.system_user] [resources.install_dir] @@ -57,10 +74,11 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" - api.url = "/api" + api.url = "/api/*" api.show_tile = false api.protected= true api.allowed = ["visitors", "all_users"] + api.auth_header = false hubs.url = "/hubs/*" hubs.show_tile = false diff --git a/scripts/change_url b/scripts/change_url index 289d619..d0fcf24 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=stop --log_path=systemd #================================================= # MODIFY URL IN NGINX CONF @@ -47,10 +47,10 @@ chown $app:$app "$install_dir/config/appsettings.json" #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +# Start a systemd service +ynh_systemd_action --service_name=$app --action=start --log_path=systemd #================================================= # END OF SCRIPT #================================================= - ynh_script_progression --message="Change of URL completed for $app" --last diff --git a/scripts/install b/scripts/install index 90b967a..fe804f9 100755 --- a/scripts/install +++ b/scripts/install @@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -ynh_script_progression --message="Setting up source files..." --weight=1 +ynh_script_progression --message="Setting up source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" @@ -51,7 +51,7 @@ chown $app:$app "$install_dir/config/appsettings.json" ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 7a1d884..171bead 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -22,7 +22,7 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -72,7 +72,7 @@ yunohost service add $app --description="Cross platform reading server" --log="/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT