diff --git a/conf/amd64.src b/conf/amd64.src new file mode 100644 index 0000000..8840e83 --- /dev/null +++ b/conf/amd64.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://dl.vikunja.io/api/0.18.1/vikunja-v0.18.1-linux-amd64-full +SOURCE_SUM=fd259ae3c717bea715e96d0806ac08f2bd462068277ab2b62ebee36fe946f0e2 +SOURCE_SUM_PRG=sha256sum +SOURCE_IN_SUBDIR=false +SOURCE_FILENAME=vikunja +SOURCE_EXTRACT=false diff --git a/conf/api.src b/conf/api.src deleted file mode 100644 index d9f9321..0000000 --- a/conf/api.src +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_URL=https://dl.vikunja.io/api/0.18.1/vikunja-unstable-amd64.deb -SOURCE_SUM=3bf5d1109727b37b461840e0bc8b60dc86dc569655551e6485c8dbe7b6de5ddb -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=deb -SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=vikunja-unstable-amd64.deb -SOURCE_EXTRACT=false \ No newline at end of file diff --git a/conf/arm64.src b/conf/arm64.src new file mode 100644 index 0000000..ffae117 --- /dev/null +++ b/conf/arm64.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://dl.vikunja.io/api/0.18.1/vikunja-v0.18.1-linux-arm64-full +SOURCE_SUM=c54c6d70b348c1697ff8519d522f2b1e3c58ffb4401ac1f4c2e729913b392a27 +SOURCE_SUM_PRG=sha256sum +SOURCE_IN_SUBDIR=false +SOURCE_FILENAME=vikunja +SOURCE_EXTRACT=false diff --git a/conf/armhf.src b/conf/armhf.src new file mode 100644 index 0000000..55c08ee --- /dev/null +++ b/conf/armhf.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://dl.vikunja.io/api/0.18.1/vikunja-v0.18.1-linux-arm-7-full +SOURCE_SUM=79548e506538319f8aab07a5630c3c2032906b34386a83c26d1a6cfc9993b39c +SOURCE_SUM_PRG=sha256sum +SOURCE_IN_SUBDIR=false +SOURCE_FILENAME=vikunja +SOURCE_EXTRACT=false diff --git a/scripts/install b/scripts/install index 71f5866..33a90ef 100644 --- a/scripts/install +++ b/scripts/install @@ -25,6 +25,7 @@ path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC timezone="$(cat /etc/timezone)" secret=$(ynh_string_random --length=32) +architecture=$YNH_ARCH app=$YNH_APP_INSTANCE_NAME @@ -108,12 +109,11 @@ chown -R $app:www-data "$final_path" #================================================= ynh_script_progression --message="Installing backend..." --weight=15 -tempdir="$(mktemp -d)" -ynh_setup_source --dest_dir=$tempdir --source_id=api -ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb - +mkdir -p "/opt/vikunja" mkdir -p "/opt/vikunja/files" +ynh_setup_source --dest_dir="/opt/vikunja" --source_id="$architecture" + chmod +x "/opt/vikunja/vikunja" chown -R $app:www-data "/opt/vikunja/files"