1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vikunja_ynh.git synced 2024-09-03 18:06:26 +02:00
This commit is contained in:
ericgaspar 2022-02-09 10:01:25 +01:00
parent b2f7e3b0f5
commit 6c28659239
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 22 additions and 11 deletions

6
conf/amd64.src Normal file
View file

@ -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

View file

@ -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

6
conf/arm64.src Normal file
View file

@ -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

6
conf/armhf.src Normal file
View file

@ -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

View file

@ -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"